in the jvms just because a system has memory does not mean that the JVM will
take it. Most jvm's start with some standard min and max stack size. and
when that max stack size is reached you get the java.lang.OutOfMemoryError.
You can increase your stack size with the standard java -Xms1M -Xmx64M where
1 and 64 are the min and max stack sizes to use in mb (in this case).

Al

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Nicolai P
Guba
Sent: Friday, June 08, 2001 4:53 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] OutOfMemoryError



*ouch*

Hmmm, left the server overnight, came back next morning and ran the
client against it.  Not sure whether I am able to accurately pinpoint
why the system thinks it is out of memory... :(

npg@raphael:~$ free
             total       used       free     shared    buffers     cached
Mem:        255332     253244       2088          0          0     153308
-/+ buffers/cache:      99936     155396
Swap:       497972          0     497972

[User] TRANSACTION ROLLBACK EXCEPTION:unable to create new native thread;
nested exception is:    java.lang.OutOfMemoryError: unable to create new
native thread
[User] java.lang.OutOfMemoryError: unable to create new native thread
[User]  at java.lang.Thread.start(Native Method)
[User]  at
sun.rmi.transport.DGCClient$EndpointEntry.<init>(DGCClient.java:218)
[User]  at
sun.rmi.transport.DGCClient$EndpointEntry.lookup(DGCClient.java:190)
[User]  at sun.rmi.transport.DGCClient.registerRefs(DGCClient.java:108)
[User]  at sun.rmi.transport.LiveRef.read(LiveRef.java:267)
[User]  at sun.rmi.server.UnicastRef2.readExternal(UnicastRef2.java:57)
[User]  at java.rmi.server.RemoteObject.readObject(RemoteObject.java:203)
[User]  at java.lang.reflect.Method.invoke(Native Method)
[User]  at
java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213)
[User]  at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
[User]  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
[User]  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
[User]  at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.readExternal(GenericProxy
.java:166)
[User]  at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.readExternal(HomeProxy.java:
265)
[User]  at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1212)
[User]  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
[User]  at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)

[snip]

--
  Nicolai P Guba    http://www.gnu.org         http://www.frontwire.com
                    mailto:[EMAIL PROTECTED]     mailto:[EMAIL PROTECTED]
                    GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to