Maximum Java heap size can be set on WAS?
![]()
Tried to set Xmx setting to 40GB, but got option too large error, we can't find any documents about how to calculate the maximum heap size, can anyone help?
Here is our hardware and software configuration, RAM: 100GB OS: RedHat Enterprise Linux 64-bit WAS: 8.5.5.0 |
One answer
![]()
Hi Makson.
Too much JVM heap can be just as bad as too little - the JVM will spend all it's time garbage collecting. What motivated you to want to increase it to 40 GB? Are you getting out of memory exceptions? I've not personally seen a server with more than 16 GB myself.
Are you hosting multiple applications in the same WAS profile? Perhaps you could split them into separate profiles.
-Matt
Comments We are doing Android platform development, for some reason, need to put about 400K files into a single component (i know this is not a good practice), and we have few projects with component like that.
I don't think the getFileTreeByVersionable4 response data is being cached by the server - at least not enough to cut 8 minutes off the response time, and certainly not enough to consume 40 GB of Java heap. Have you tried monitoring your server's JVM heap usage? That will give you a much better idea of an optimal JVM heap size setting for your server. Makson: I'm guessing you tried 16 GB but it didn't solve your problem?
258751: Long time during the fetching time of a build with large amount of files under Windows
Thanks for all of your response.
|