Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Raviprakash Sharma
RE: Windows service memory settings
June 17, 2013 9:34 AM
Answer

Raviprakash Sharma

Rank: New Member

Posts: 1

Join Date: March 13, 2013

Recent Posts

My server is not getting started when am adding both of the following lines in JAVA tab:
-XXemoticonermSize=128m
-XX:MaxPermSize=256m

Set initial memory pool and maximum memory pool to 1024.


Only -XX:MaxPermSize=256m

and initial memory pool at 512 and maximum memory pool to 1024.


is working for me.(RAM size :3Gemoticon Could anyone please explain to me, as i am new to liferay.
Olaf Kock
RE: Windows service memory settings
June 19, 2013 1:42 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3557

Join Date: September 23, 2008

Recent Posts

What Platform are you running on? Windows32? This platform has some limitation in memory management: The most memory you can assign to your JVM is around 1.5G if you're starting it early after booting.

If you can't run with initial 1024M, odds are that sooner or later - when the JVM wants to allocate more memory - you'll be running out-of-memory. IMHO it's best practice to set the initial and max memory to the same values in production setups: In case you can't get enough memory you want to know about this as early as possible, while you're potentially in front of the machine. That is: While you're starting the server.

If you're on a different platform, check what else is eating up your memory. Also, make sure you're not using virtual memory: That's one of the safest ways to kill your performance (unless you're the only user on a development box)