Websphere JVM Heap Size

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
gsbrown
Premium Member
Premium Member
Posts: 148
Joined: Mon Sep 23, 2002 1:00 pm
Location: USA

Websphere JVM Heap Size

Post by gsbrown »

Is there a general rule of thumb when it comes to setting JVM "initial heap size" and "maximum heap size" in Websphere Console?

We have 64-bit with 32MB memory and currently have "initial" set to 1280MB and "maximum" set to 2048MB.
We've recently run into two cases where dsjob command failed with "'java::lang::OutOfMemoryError'".
Currently when I check "free -m" on the server it's showing 4MB free.

Curious if anyone can help determine if our settings could be tweaked a little better? I keep finding conflicting articles that suggest we could either have too little allocated or too much allocated.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

I assume you mean you've got 32 GB of memory, not MB.

We have some servers with 50+ GB of memory, initial size heap size of 1280 MB and max heap size of 8192 MB. Unfortunately I don't recall how we arrived at that number.

It's going to depend on which products you run. I would recommend you work with product Support on it. Could you also post the links to these conflicting articles?

Also I am not sure that WAS setting is directly related to your dsjob error or not. Over the years, we have run across many commands and server scripts that need to have their default java -Xmx values increased due to the 'java::lang::OutOfMemoryError' error.
Choose a job you love, and you will never have to work a day in your life. - Confucius
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... did you mean "decreased" in that last sentence?
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

No, I meant increased, because the various scripts you execute on the server didn't always allocate enough memory to begin with (via the -Xmx argument), leading to the out of memory error. That was a common problem back in version 8.5 and less so in 8.7. We skipped 9.x and I haven't really run into it much in 11.3.

Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM). Hope that helps.
Choose a job you love, and you will never have to work a day in your life. - Confucius
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Gotcha... sorry I was thinking that if you were running out of heap memory that you might have needed to decrease some, if they were allocating more than they really needed to so others had access to it. Thanks for the clarification.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply