2 Replies Latest reply on Oct 5, 2010 3:21 PM by peterj

    java.lang.OutOfMemoryError: Java heap space - only with EJB3 remote

    dattguru

      Hello,

       

      1) Deployed a .ear application with .jar(EJB3) and .war(Struts2) on Jboss-4.3GA.  From Browser application is running fine without OutofMemory error. 

       

      2) But when Invoked the same .ear application(EJB3) from a standalone client with (-Xmx1024m) and server(-Xmx1024m) is throwing exception.

       

      3) My Question is: How and Why only remote(EJB3) application call throwing OutOfMemory error, when the same application(same configuration) is running fine inside the Jboss-4.3GA.

       

      thanks

      -Datt

       

      Environment:  

         Server OS: x86_64 x86_64 x86_64 GNU/Linux, JBoss-4.3GA

       

      Exception:

      java.net.SocketException: Broken pipe

              at java.net.SocketOutputStream.socketWrite0(Native Method)
              at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
              at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
              at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
              at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
              at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1685)
              at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1594)
              at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1173)
              at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1127)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
              at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1398)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:305)
              at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObjectVersion2_2(JavaSerializationManager.java:120)
              at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObject(JavaSerializationManager.java:95)
              at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:120)
              at org.jboss.remoting.transport.socket.ServerThread.versionedWrite(ServerThread.java:861)
              at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:642)
              at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:407)
              at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:174)