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

Ask Your Question
0

Memory Shortage

Hi All.

Using GigaspacesXAP6.5, Java 1.5, EDS, ALL IN CACHE, loading about 5000 objects from the database and when initializing the space, I´m getting:

INFO [com.gigaspaces.cache]: Cache created with policy [ALL IN CACHE], persistency mode [external]

GRAVE [com.gigaspaces.core.engine]: Failed to init [MAFSpace] space. Memory shortage at: host: Desarrollo4, container: MAFSpace_container, space MAFSpace, total memory: 63 mb, used memory: 44 mb at com.j_spaces.obf.me.a(SourceFile:309) at com.j_spaces.obf.me.H(SourceFile:260) at com.j_spaces.obf.me.G(SourceFile:221) at com.j_spaces.obf.if.b(SourceFile:3805) at com.j_spaces.obf.if.a(SourceFile:777) at com.j_spaces.obf.pv.ie(SourceFile:918) at com.j_spaces.obf.pv.a(SourceFile:718) at com.j_spaces.core.JSpaceImpl.B(SourceFile:3474) at com.j_spaces.core.JSpaceImpl.y(SourceFile:3352) at com.j_spaces.core.JSpaceImpl.start(SourceFile:3153) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:366) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:306) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2921) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2844) at com.j_spaces.core.JSpaceContainerImpl.bj(SourceFile:1286) at com.j_spaces.core.JSpaceContainerImpl.bc(SourceFile:681) at com.j_spaces.core.JSpaceContainerImpl.<init>(SourceFile:576) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:748) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:867) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:591) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:429) at org.openspaces.core.space.UrlSpaceFactoryBean.doCreateSpace(UrlSpaceFactoryBean.java:285) at org.openspaces.core.space.AbstractSpaceFactoryBean.afterPropertiesSet(AbstractSpaceFactoryBean.java:136) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:948) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:702) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:378) at org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:243) at org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:212) at org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:187) at org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:140) at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:100) at junit.framework.TestCase.runBare(TestCase.java:132) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

How can I do?

Thanks

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

asked 2008-07-03 11:36:01 -0600

nullcipher2 gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

Seems your Xmx is very small - 64 M. Please increase it.

Shay

answered 2008-07-03 12:31:53 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thanks Shay. Problem solved!

nullcipher2 gravatar imagenullcipher2 ( 2008-07-03 13:18:26 -0600 )edit

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-03 11:36:01 -0600

Seen: 129 times

Last updated: Jul 03 '08