Hi Abhi,
I guess you have a PermGen memory leak. It's not easy to solve but you can try
the following to analyze the problem:
- Open java visual VM (you can find it in ${JAVA_HOME}/bin/jvisualvm)
- Select your process and observe your growing PermGen size in the monitor tab.
- When the PermGen reaches a more than reasonable size, perform a heap dump.
- In the newly created heap dump tab you can find the amount of space each
class takes in the Classes section.
- Fur further analysis you van go to the OQL console section. There are some
predefines saved queries for PermGen Analysis.
You can use this to find out what is filling up your heap and get a great hint
on where the problem is.
Do not hesitate to leave a message if you need more help.
Wim
On 02 Jul 2013, at 11:56, abhi <[email protected]> wrote:
> Hi,
> I am getting *"java.lang.OutOfMemoryError: PermGen space"* error when I am
> deloying my JAR's/bundles in servicemix.
>
> I am getting this error 3-4 hours after I deploy JAR's in Service Mix.
>
> I have modified my servicemix.sh with larger values, but still getting same
> error.
>
> if [ "x$JAVA_PERM_MEM" != "x" ]; then
> DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS -XX:PermSize=*384m*"
> fi
> if [ "x$JAVA_MAX_PERM_MEM" != "x" ]; then
> DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS -XX:MaxPermSize=*512m*"
> Fi
>
>
> Can you please guide me on, How can I proceed in finding out root cause?
>
> Note: I am suspecting it might be because of openJPA Jar's that I am usig.
> But not Sure about it.
>
> Thanks,
> Abhi
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/java-lang-OutOfMemoryError-PermGen-space-in-Servicemix-tp5717224.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.