This content has been marked as final.
Show 4 replies
-
1. Re: New Embedded Prototype
starksm64 Nov 21, 2008 4:07 AM (in response to alrubinger)I downloaded it and ran the package target and the test is failing with an OutOfMemoryError on some vfs copy:
<testcase classname="org.jboss.embedded.test.server.ServerUnitTestCase" time="1.562" name="testServerStart"> <error type="java.lang.OutOfMemoryError" message="Java heap space">java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at org.jboss.virtual.VFSUtils.copyStream(VFSUtils.java:773) at org.jboss.virtual.VFSUtils.copyStreamAndClose(VFSUtils.java:733) at org.jboss.virtual.plugins.context.zip.ZipEntryContext.findEntry(ZipEntryContext.java:308) at org.jboss.virtual.plugins.context.zip.ZipEntryContext.createZipSource(ZipEntryContext.java:287) at org.jboss.virtual.plugins.context.zip.ZipEntryContext.init(ZipEntryContext.java:217) at org.jboss.virtual.plugins.context.zip.ZipEntryContext.<init>(ZipEntryContext.java:148) at org.jboss.virtual.plugins.context.zip.ZipEntryContext.<init>(ZipEntryContext.java:133) at org.jboss.virtual.plugins.context.zip.ZipEntryContextFactory.getVFS(ZipEntryContextFactory.java:71) at org.jboss.virtual.VFS.getVFS(VFS.java:157) at org.jboss.virtual.VFS.getRoot(VFS.java:172) at org.jboss.virtual.spi.cache.helpers.NoopVFSCache.getFile(NoopVFSCache.java:48) at org.jboss.virtual.VFS.getCachedFile(VFS.java:191) at org.jboss.bootstrap.BaseServerConfig.getFile(BaseServerConfig.java:740) at org.jboss.bootstrap.BaseServerConfig.<init>(BaseServerConfig.java:111) at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:170) at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:153) at org.jboss.embedded.server.JBossEmbeddedAS.<init>(JBossEmbeddedAS.java:123) at org.jboss.embedded.test.server.ServerUnitTestCase.testServerStart(ServerUnitTestCase.java:39) ... </error>
-
2. Re: New Embedded Prototype
alesj Nov 21, 2008 4:25 AM (in response to alrubinger)Along with adding some more memory,
it's probably useful to set these two vfs config options:
-Djboss.vfs.cache=org.jboss.virtual.plugins.cache.TimedVFSCache
-Djboss.vfs.forceCopy=true -
3. Re: New Embedded Prototype
alrubinger Nov 21, 2008 10:35 AM (in response to alrubinger)Should be fixed now.
http://jboss.hudson.alrubinger.com/job/jboss-embedded/5/
Surefire plugin supports only 1 argLine, so values were getting overridden. Oddly enough my local machine doesn't need this configuration.
S,
ALR -
4. Re: New Embedded Prototype
kasali45 Apr 12, 2012 11:05 AM (in response to alrubinger)thanks for the info