Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Virtual Server with 1GB of RAM. When i start glassfish with asadmin start-domain it instantly allocates all available memory, although i defined -Xmx128m in my domain.xml. Am I missing an option here? How can I prevent glassfish from using all free memory?

share|improve this question
up vote 1 down vote accepted

Glassfish minimum required RAM is 1GB. You can check this documentation right here: GlassFish Enterprise Server v3 Hardware and Software Requirements. So define -Xmx to be less then 512M will not going to work.

EDIT: I just realize that you have ask this question 7 months ago. I hope my answer help you out

share|improve this answer
i'm still watchin this - thanks for your answer anyway – Mannaz Dec 9 '10 at 23:26

I have some experiences. First of all check memory usage before running Glassfish. I started with Centos 5, after switching off some services it consumes about 256M RAM. When I start domain another 240M is consumed. When I log into admin console of Glassfish another 150m. I check the RAM with "free" command. Additionaly noticed that sequence start-domain, stop-domain causes some memore leak, since the ram used is grather than before runninig Glassfish. I have changing Xmx for admin server to 192M and it runs however consuming more that that limit.

Centos 5.9 86_64 Glassfish JVM Oracle 1.7u21

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.