1 2 Previous Next 15 Replies Latest reply on Feb 27, 2006 5:24 AM by gquintana

    OutOfMemoryError: unable to create new native thread

    gquintana

      Hello,

      I get an exception java.lang.OutOfMemoryError: unable
      to create new native thread
      under heavy conditions. I tried to increase Java memory size with -Xmx1024M option but it didn't help.

      Here is the stack trace:

      2006-02-21 10:22:34,272 INFO [STDOUT] java.lang.OutOfMemoryError: unable
      to create new native thread
      2006-02-21 10:22:34,273 INFO [STDOUT] at java.lang.Thread.start(Native
      Method)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.transport.tcp.TCPChannel.free(TCPChannel.java:322)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.server.UnicastRef.free(UnicastRef.java:402)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.server.UnicastRef.done(UnicastRef.java:419)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.transport.DGCImpl_Stub.dirty(Unknown Source)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.transport.DGCClient$EndpointEntry.makeDirtyCall(DGCClient.java:328)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.transport.DGCClient$EndpointEntry.access$1600(DGCClient.java:144)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(DGCClient.java:539)
      2006-02-21 10:22:34,273 INFO [STDOUT] at
      java.lang.Thread.run(Thread.java:534)
      2006-02-21 10:22:37,097 ERROR [org.jboss.ejb.plugins.LogInterceptor]
      Unexpected Error in method: public abstract void
      fr.gtietransport.myrabel.serveur.gestionUtilisateurs.bean.UtilisateursFacade.signalerPresence(fr.gtietransport.myrabel.serveur.gestionUtilisateurs.bo.UtilisateurBo)
       throws
      fr.gtietransport.lugdunum.serveur.biz.BusinessException,java.rmi.RemoteException
      java.lang.OutOfMemoryError: unable to create new native thread
       at java.lang.Thread.start(Native Method)
       at java.util.Timer.<init>(Timer.java:95)
       at org.jboss.ejb.txtimer.TimerImpl.startInTx(TimerImpl.java:328)
       at org.jboss.ejb.txtimer.TimerImpl.startTimer(TimerImpl.java:108)
       at
      org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:207)
       at
      org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:121)
       at
      org.jboss.ejb.StatelessSessionEnterpriseContext$TimerServiceWrapper.createTimer(StatelessSessionEnterpriseContext.java:255)
       at
      fr.gtietransport.myrabel.serveur.gestionUtilisateurs.bean.UtilisateursFacadeBean.signalerPresence(UtilisateursFacadeBean.java:168)
       at sun.reflect.GeneratedMethodAccessor464.invoke(Unknown Source)
       at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
       at
      org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
      


      I am using:


        1 2 Previous Next