
Anonymous
Not applicable
2014-12-18
11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PermGen Error on Karaf container
Hi everybody,
I am facing an issue while starting the karaf container as a service.
Everything works well when I start it using the start command.
When I start it via the generated service, I get (really quickly) a perm gen error :
15:46:44,589 | ERROR | heckpoint Worker | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread died
java.lang.OutOfMemoryError: PermGen space
15:46:58,060 | ERROR | roker] Scheduler | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread Scheduler,5,main] died
java.lang.OutOfMemoryError: PermGen space
15:47:20,483 | WARN | ng.agent1.cache] | .DefaultMessageListenerContainer 844 | 145 - org.springframework.jms - 3.2.4.RELEASE | Setup of JMS message listener invoker failed for destination 'event.logging.agent1.cache' - trying to recover. Cause: PermGen space
15:47:22,511 | ERROR | Connection(idle) | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread died
java.lang.OutOfMemoryError: PermGen space
15:47:26,976 | ERROR | Connection(idle) | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread died
java.lang.OutOfMemoryError: PermGen space
15:47:27,645 | WARN | ng.agent1.cache] | ache.activemq.ActiveMQConnection 698 | 293 - org.apache.activemq.activemq-core - 5.7.0 | Error shutting down thread pool: java.util.concurrent.ThreadPoolExecutor@612167be. This exception will be ignored.
java.lang.OutOfMemoryError: PermGen space
Do you have any idea ?
Thanks in advance !
Romain.
I am facing an issue while starting the karaf container as a service.
Everything works well when I start it using the start command.
When I start it via the generated service, I get (really quickly) a perm gen error :
15:46:44,589 | ERROR | heckpoint Worker | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread died
java.lang.OutOfMemoryError: PermGen space
15:46:58,060 | ERROR | roker] Scheduler | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread Scheduler,5,main] died
java.lang.OutOfMemoryError: PermGen space
15:47:20,483 | WARN | ng.agent1.cache] | .DefaultMessageListenerContainer 844 | 145 - org.springframework.jms - 3.2.4.RELEASE | Setup of JMS message listener invoker failed for destination 'event.logging.agent1.cache' - trying to recover. Cause: PermGen space
15:47:22,511 | ERROR | Connection(idle) | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread died
java.lang.OutOfMemoryError: PermGen space
15:47:26,976 | ERROR | Connection(idle) | r.server.NIOServerCnxn$Factory$1 81 | 213 - org.apache.hadoop.zookeeper - 3.3.6 | Thread Thread died
java.lang.OutOfMemoryError: PermGen space
15:47:27,645 | WARN | ng.agent1.cache] | ache.activemq.ActiveMQConnection 698 | 293 - org.apache.activemq.activemq-core - 5.7.0 | Error shutting down thread pool: java.util.concurrent.ThreadPoolExecutor@612167be. This exception will be ignored.
java.lang.OutOfMemoryError: PermGen space
Do you have any idea ?
Thanks in advance !
Romain.
290 Views
5 Replies

Anonymous
Not applicable
2014-12-19
03:02 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you share the Java version you're using? Have you tried to modify the JAVA_MAX_PERM_MEM value?
Best regards
Sabrina
Can you share the Java version you're using? Have you tried to modify the JAVA_MAX_PERM_MEM value?
Best regards
Sabrina
290 Views

Anonymous
Not applicable
2014-12-22
03:43 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sabrina,
Thank you for your answer.
In fact, I had to add some specific properties into the wrapper configuration (memory, GC, etc.).
Romain.
Thank you for your answer.
In fact, I had to add some specific properties into the wrapper configuration (memory, GC, etc.).
Romain.
290 Views

Anonymous
Not applicable
2014-12-22
03:45 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you give us more information about your configuration? In addition, what's the ESB build version you are using? JDK?
Best regards
Sabrina
Could you give us more information about your configuration? In addition, what's the ESB build version you are using? JDK?
Best regards
Sabrina
290 Views

Partner - Contributor
2015-03-12
12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We had the same issue, what we have resolved with adding java settings in etc/*-wrapper.conf file
java -version
Regard,
We had the same issue, what we have resolved with adding java settings in etc/*-wrapper.conf file
wrapper.java.additional.9=-XX:PermSize=384m
java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
Regard,
290 Views

Anonymous
Not applicable
2015-03-23
12:34 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry, I did not see your question Sabrina ..
It was on ESB 5.5.1 and a 1.7 JDK (probably the last one).
We added the following parameters :
wrapper.java.additional.9=-XX:+UseConcMarkSweepGC
wrapper.java.additional.10=-XX:+CMSClassUnloadingEnabled
wrapper.java.additional.11=-Xms256M
wrapper.java.additional.12=-Xmx1024M
wrapper.java.additional.13=-XX
ermSize=128M
wrapper.java.additional.14=-XX:MaxPermSize=640M
Romain.
Sorry, I did not see your question Sabrina ..
It was on ESB 5.5.1 and a 1.7 JDK (probably the last one).
We added the following parameters :
wrapper.java.additional.9=-XX:+UseConcMarkSweepGC
wrapper.java.additional.10=-XX:+CMSClassUnloadingEnabled
wrapper.java.additional.11=-Xms256M
wrapper.java.additional.12=-Xmx1024M
wrapper.java.additional.13=-XX
wrapper.java.additional.14=-XX:MaxPermSize=640M
Romain.
290 Views
