Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Space OutOfMemoryError

Hi All.

My application is trying to load about 200000 objects to the the space (ALL IN CACHE), I´m doing this with a writeMultiple operation, but ......

Exception in thread "LocalTransactionManagerImpl$Reaper [AFSpaceCache]" java.lang.OutOfMemoryError: Java heap space Exception in thread "Cache PersistentGC" java.lang.OutOfMemoryError: Java heap space at java.util.concurrent.ConcurrentHashMap$EntrySet.iterator(ConcurrentHashMap.java:1266) at com.j_spaces.obf.cx.a(SourceFile:181) at com.j_spaces.obf.cx.aU(SourceFile:151) Exception in thread "bn$Reaper [AFSpace]" Exception in thread "CapabilityChannel" java.lang.OutOfMemoryError: Java heap space at java.util.concurrent.ConcurrentHashMap.isEmpty(ConcurrentHashMap.java:654) at com.j_spaces.obf.dr.bM(SourceFile:910) at com.j_spaces.obf.dr.run(SourceFile:636) java.lang.OutOfMemoryError: Java heap space Exception in thread "LRMI Connection--pool-1-thread-2" java.lang.OutOfMemoryError: Java heap space Exception in thread "event listener notification" java.lang.OutOfMemoryError: Java heap space Exception in thread "LocalTransactionManagerImpl$Reaper [MAFSpace]" java.lang.OutOfMemoryError: Java heap space Exception in thread "LRMI Connection--pool-1-thread-4" java.lang.OutOfMemoryError: Java heap space at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1657) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1870) at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:475) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:674) at java.lang.Thread.run(Thread.java:595) Exception in thread "LeaseReaper" java.lang.OutOfMemoryError: Java heap space Exception in thread "multicast announcement timer" java.lang.OutOfMemoryError: Java heap space Exception in thread "Timer-5" java.lang.OutOfMemoryError: Java heap space Exception in thread "batching notifier" java.lang.OutOfMemoryError: Java heap space Exception in thread "LRMI Connection--pool-1-thread-7" java.lang.OutOfMemoryError: Java heap space Exception in thread "RMI TCP Connection(11)-192.168.4.138" java.lang.OutOfMemoryError: Java heap space Exception in thread "RMI RenewClean-[DESARROLLO4:39502]" java.lang.OutOfMemoryError: Java heap space Exception in thread "LRMI Connection--pool-1-thread-9" java.lang.OutOfMemoryError: Java heap space Exception in thread "LRMI Connection--pool-1-thread-13" java.lang.OutOfMemoryError: Java heap space Exception in thread "LRMI Connection--pool-1-thread-14" java.lang.OutOfMemoryError: Java heap space Exception in thread "Timer-7" java.lang.OutOfMemoryError: Java heap space Exception in thread "Timer-6" java.lang.OutOfMemoryError: Java heap space

What can I do?

Thanks h4. Attachments

[gs-ui_op.jpg|/upfiles/1375971780188425.jpeg]

[ser_la.jpg|/upfiles/1375971780884175.jpeg]

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2463]{quote}

asked 2008-07-18 11:51:05 -0500

nullcipher2 gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

you should:
- Increase the GSC Xmx (see the setenv)
- Apply some footprint tips. See: /&#8794

Shay

Attachments

  1. gs-ui_op.jpg
  2. ser_la.jpg

answered 2008-07-18 11:58:00 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thanks Shay. I´m launching the GSC from the GSMC(gs-ui), where can I increase the GSC Xmx? h4. Attachments

[gs-ui_op.jpg|/upfiles/13759717806084795.jpeg]

[ser_la.jpg|/upfiles/13759717806069095.jpeg]

nullcipher2 gravatar imagenullcipher2 ( 2008-07-18 12:04:37 -0500 )edit

See the Xmx settings within the \gigaspaces-xap-6.5.0-ga\bin\setenv. The gs-ui using these. I suggest you to run the GSC in separate JVM other than the UI (run the gsc script) to have better control on the JVM settings.

Shay

Edited by: Shay Hassidim on Jul 18, 2008 12:13 PM h4. Attachments

[gs-ui_op.jpg|/upfiles/13759717812997815.jpeg]

[ser_la.jpg|/upfiles/13759717812807515.jpeg]

shay hassidim gravatar imageshay hassidim ( 2008-07-18 12:13:22 -0500 )edit

You can configure the GSC settings using the Service Grid Launch Utility. See attached.

See more: http://www.gigaspaces.com/wiki/displa...

Shay

Edited by: Shay Hassidim on Jul 18, 2008 12:24 PM h4. Attachments

[gs-ui_op.jpg|/upfiles/13759717816025836.jpeg]

[ser_la.jpg|/upfiles/13759717819544336.jpeg]

shay hassidim gravatar imageshay hassidim ( 2008-07-18 12:21:57 -0500 )edit

I made the change using the Service Grid Launch Utility, having the memory options with -server -showversion -Xmx1024m, but, when I launch the GSM-GSC, it seems the Xmx is 256m.

INFO [com.gigaspaces.grid.gsc]:

System Environment: System: OS Version: 5.1 Architecture: x86 OS Name: Windows XP Number Of Processors: 2 J2SE Support: VM Vendor: Sun Microsystems Inc. Using Java Home: C:\Archivos de programa\Java\jdk1.5.0_14\jre Java(TM) 2 Runtime Environment, Standard Edition Java HotSpot(TM) Server VM (build 1.5.0_14-b03 ) JVM Memory: Max Heap Size (KB): 252480 Current Allocated Heap Size (KB): 917 Network Interfaces Information: Host Name: [Desarrollo4] Network Interface Name: lo / MS TCP Loopback interface IP Address: 127.0.0.1 Network Interface Name: eth0 / Intel(R) 82566DM-2 Gigabit Network Connection - Teefer2 Miniport IP Address: 192.168.4.138 GigaSpaces Platform: Edition: 6.5 XAP rc2 Build: 2340 Jar Spec: 1.5 Home: C:\GigaspacesXAP6.5\

I restart the gs-ui and the issue was solved. Thanks

Edited by: Jorge Mario Ulloa Marin on Jul 18, 2008 3:06 PM

nullcipher2 gravatar imagenullcipher2 ( 2008-07-18 14:35:11 -0500 )edit

Hi, "Edition: 6.5 XAP rc2"

I saw you are still using the Release Candidate 2. I strongly advise you to download the GA b2352 from the website and use that one.

Regards, Gershon

gershond gravatar imagegershond ( 2008-07-19 03:55:50 -0500 )edit
0

Thanks

answered 2008-07-18 15:09:03 -0500

nullcipher2 gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-07-18 11:51:05 -0500

Seen: 460 times

Last updated: Jul 18 '08