I am working on a project in which I will have different Bundles. Letβs take an example: suppose I have 5 bundles, and each of these bundles will have a process
method name.
Now, I'm currently calling the process
method for all of these 5 bundles in parallel using the multi-threaded code below.
But anyway, every time I run the following multithreaded code, it always gives me an exception in memory. But if I run it sequentially, then calling the method method one by one, then this does not give me an exception from memory.
Below is the code -
public void callBundles(final Map<String, Object> eventData) {
The exception below is what I get whenever I run on multi-threaded code.
JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" - please wait. JVMDUMP032I JVM requested Heap dump using 'S:\GitViews\Stream\goldseye\heapdump.20130904.175256.12608.0001.phd' in response to an event JVMDUMP010I Heap dump written to S:\GitViews\Stream\goldseye\heapdump.20130904.175256.12608.0001.phd JVMDUMP032I JVM requested Java dump using 'S:\GitViews\Stream\goldseye\javacore.20130904.175256.12608.0002.txt' in response to an event UTE430: can't allocate buffer UTE437: Unable to load formatStrings for j9mm JVMDUMP010I Java dump written to S:\GitViews\Stream\goldseye\javacore.20130904.175256.12608.0002.txt JVMDUMP032I JVM requested Snap dump using 'S:\GitViews\Stream\goldseye\Snap.20130904.175256.12608.0003.trc' in response to an event UTE001: Error starting trace thread for "Snap Dump Thread": -1 JVMDUMP010I Snap dump written to S:\GitViews\Stream\goldseye\Snap.20130904.175256.12608.0003.trc JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError". ERROR: Bundle BullseyeModellingFramework [1] EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError: Failed to create a thread: retVal -1073741830, errno 12) java.lang.OutOfMemoryError: Failed to create a thread: retVal -1073741830, errno 12 JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" - please wait. JVMDUMP032I JVM requested Heap dump using 'S:\GitViews\Stream\goldseye\heapdump.20130904.175302.12608.0004.phd' in response to an event JVMDUMP010I Heap dump written to S:\GitViews\Stream\goldseye\heapdump.20130904.175302.12608.0004.phd JVMDUMP032I JVM requested Java dump using 'S:\GitViews\Stream\goldseye\javacore.20130904.175302.12608.0005.txt' in response to an event
I am using JDK1.6.0_26
as the installed JRE in my eclipse.
source share