0 Replies Latest reply on Apr 26, 2006 8:48 AM by morenito9000

    Random OutOfMemoryException

    morenito9000 Newbie

      Hi all,
      I have this situation:

      client application -> JBOSS (SessionBean) -> DAO class -> PostgresqlDB

      After a client's call, JBOSS selects data from DB, creates 200 hundred
      Transfer Objects, sends these objects back to the client.

      It usually works but I've got sometimes this exception (client side):

      java.rmi.ServerError: Error occurred in server thread; nested exception is:
      java.lang.OutOfMemoryError
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:289)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:534)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      at $Proxy3.pregetLista(Unknown Source)
      at client.util.MalfDelegate.pregetLista(MalfDelegate.java:134)
      at client.gui.StampaThread.run(StampaThread.java:375)
      Caused by: java.lang.OutOfMemoryError
      


      Server side, in server.log file, I don't find any ERROR (the only bad thing is that JBoss slows down).

      I don't undertsand if this is:

      1) a "client problem" (for example due to the large amount of data it receives from server: 200 hundred TO are equals to 50/60 Mbyte)

      2) a "server problem" (have I to change Xms and Xmx values when I start JBoss ?)

      3) a "network problem"

      Any help is very appreciated.
      Many thanks

      Moreno