Hi Dileepa,

You need to set a greater size for the permanent generation of your JVM. This is the memory space reserved for the reflective objects of the loaded classes. It is non-heap so it will not increase automatically as you set -Xmx=manyg

The Stanbol full launcher typically requires quite a bit more than the default permgen. Try to pass

-XX:MaxPermSize=192m

as an additional JVM argument when you start Stanbol.

Best,
Alessandro


On 28/05/2013 12:46, Dileepa Jayakody wrote:
Hi All,

I'm getting a java OOM error [1] when trying to start Stanbol with:
java -Xmx1g -jar org.apache.stanbol.launchers.full-0.10.0-SNAPSHOT.jar

I even tried with -Xmx2g, -Xmx3g but still got the same OOM error.
Howeve I could run the stanbol stable launcher
(org.apache.stanbol.launchers.stable-0.10.0-SNAPSHOT.jar) without this
problem.

Can somebody help me resolve this error with full launcher?

Thanks,
Dileepa

[1] ERROR: Bundle org.apache.clerezza.permissiondescriptions [184]:
EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError:
PermGen space)
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1907)
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:727)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1612)
at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
at
org.apache.clerezza.permissiondescriptions.PermissionGatherer.registerPermissions(PermissionGatherer.java:203)
at
org.apache.clerezza.permissiondescriptions.PermissionGatherer.bundleChanged(PermissionGatherer.java:172)
at
org.apache.felix.framework.util.EventDispatcher$4.run(EventDispatcher.java:800)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:797)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
at
org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
at
org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
at
org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
at java.lang.Thread.run(Thread.java:722)



--
Alessandro Adamou, Ph.D.

Knowledge Media Institute
The Open University
Walton Hall, Milton Keynes MK7 6AA
United Kingdom

Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna
Italy


"I will give you everything, just don't demand anything."
(Ettore Petrolini, 1917)

Not sent from my iSnobTechDevice

Reply via email to