Reputation: 64707
I have now 1gb ram at work(i hope that will change soon) and jboss takes almost half of it and that is too much, i turned off logging to file, what more can i do to reduce memory usage ?
Upvotes: 7
Views: 6785
Reputation: 13727
You could try using the latest version of JBoss (version 6). I think it uses less memory, though I could be wrong.
Upvotes: 0
Reputation: 695
I was able to lower JBoss's initial memory footprint for the default profile by over 100MB by following some of the steps from the JBoss community wiki.
Details including how much memory you can save with each step here: http://www.clickonchris.com/2011/06/tuning-reducing-jboss-memory-footprint/
Upvotes: 2
Reputation: 1026
You can limit the maximum memory used using the -Xmx parameter, as in any java process. Edit the $JBOSS_HOME/bin/run.conf and set this parameter to the desired maximum memory you want to allocate to JBoss.
Also, you can remove from the deploy directory of the server configuration you are using, the services you are not using. To be sure about what files you must remove in order to remove unused services, check the documentation
Upvotes: 9
Reputation: 50227
Which configuration are you using? JBoss comes with 3 standard server configurations
If you only want a specific subset of JBoss services, then start with the minimal?
Or you can configure your own?
Upvotes: 5