3 Replies Latest reply on Oct 16, 2007 6:38 AM by Vidyasagar Atikam

    java.lang.OutOfMemoryError while processing a file size with

    Vidyasagar Atikam Newbie


      I had modified helloworld_ftp_action example where JBoss ESB reads a file and after processing it will send it to queue. It is reading a file from FTP server with less size (272KB) properly. But when I send file with size around 8MB, then process is failing with following error:

      [echo] Launching Quickstart in standalone mode...
      [java] +----------------------------------------------------------+
      [java] | |
      [java] | Starting JBossESB... |
      [java] | |
      [java] +----------------------------------------------------------+
      [java] Reading config from E:\jbossesb-4.2MR3\samples\quickstarts\helloworld_ftp_action\jboss-esb.xml
      [java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

      E:\jbossesb-4.2MR3\samples\quickstarts\conf\base-build.xml:269: Java returned: 1

      I had increased the heap size in JBoss AS server from default values in run.bat file:
      set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m

      But no use. Do I need to specify it in some other place?.

      What is the maximum file size that JBoss ESB read messages from FTP server and able to process without any errors?

      Please pour some inputs.