Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jboss with less memory

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 ?

like image 418
IAdapter Avatar asked Oct 31 '08 11:10

IAdapter


2 Answers

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

like image 96
Alexandre Avatar answered Nov 10 '22 06:11

Alexandre


Which configuration are you using? JBoss comes with 3 standard server configurations

  • The minimal configuration starts the core server container without any of the enterprise services. It is a good starting point if you want to build a customized version of JBoss AS that only contains the services you need.
  • The default configuration is the mostly common used configuration for application developers. It supports the standard J2EE 1.4 and most of the Java EE 5.0 programming APIs (e.g., JSF and EJB3).
  • The all configuration is the default configuration with clustering support and other enterprise extensions.

If you only want a specific subset of JBoss services, then start with the minimal?

Or you can configure your own?

like image 41
toolkit Avatar answered Nov 10 '22 04:11

toolkit