Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Raviprakash Sharma
RE: Windows service memory settings
17 juin 2013 09:34
Réponse

Raviprakash Sharma

Rang: New Member

Publications: 1

Date d'inscription: 13 mars 2013

Publications Récentes

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
19 juin 2013 01:42
Réponse

Olaf Kock

LIFERAY STAFF

Rang: Liferay Legend

Publications: 3434

Date d'inscription: 23 septembre 2008

Publications Récentes

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)