Subversion/Hudson/Sonar/Artifactory - too much for my little server to handle! Help!

Posted by Ricket on Server Fault See other posts from Server Fault or by Ricket
Published on 2010-03-14T22:59:38Z Indexed on 2010/03/14 23:05 UTC
Read the original article Hit count: 331

I have a little dedicated server. It's at a cheap price and has a simple AMD 1800+ (1.5ghz), 256mb DDR RAM, ...need I continue? And I think I'm overloading it already.

I have installed the following, and it's running CentOS 5.4:

  • Webmin
  • Apache
  • MySQL
  • Subversion as an Apache module
  • Hudson (standalone)
  • Sonar (standalone, runs with a standalone Jetty install)
  • Artifactory (standalone)

That's pretty much it. But I'm having problems; pages are loading quite slowly. Network speed of the server is excellent, but I think I'm just running out of CPU and/or memory. A side-effect of the pages loading slowly is that sometimes Hudson times out, not being able to start Maven or contact Sonar in a certain amount of time.

I think the next step to speed things up might be to move to an application server and use the WAR version of Hudson, Sonar and Artifactory together on that server. I don't know that it will help, but it just seems to make sense, especially with Sonar running on its own Jetty install and the other two probably running their own mini application servers as well. Am I correct in thinking this?

Is this the right course of action? Any other tips on how to make the server run faster? I can post more data if you'd like, just let me know what else would help you answer my question.

Oh, also just to cure any suspicions, I don't have any sort of virus or spyware. I protect my SSH access with DenyHosts (which has blocked 300+ brute forcers in the past few months), and I have confirmed that the top four processes in terms of memory and CPU usage are Sonar, Artifactory, Hudson, and MySQL.

Edit: I just thought of another thing that I'd like you to comment on as well: Apache currently has 8 spawned slave processes, taking 42MB of ram apiece. This is not my web server. Is everything else able to function if I shut down Apache? Can you point me towards a tutorial or something on migrating Subversion from Apache into something that might work along with the other three applications, maybe even make Subversion a WAR file or something?

© Server Fault or respective owner

Related posts about optimization

Related posts about application-server