Hi,
I have been doing some stress-testing, sending simultaneously some
large files (2MB) to our Back-End through the JavaBridge, but they are
failing. Some of the errors I get back are:
protocol error: , Invalid document end at col 4. Check the back end
log for details.
or
protocol error: , Invalid document end at col 10. Check the back end
log for details.
In other cases it shows various errors like:
---------
Notice: fwrite() [function.fwrite]: send of 8192 bytes failed with
errno=10053 An established connection was aborted by the software in
your host machine. in Java.inc on line 815
protocol error: , Invalid document end at col 4. Check the back end
log for details.
Notice: fwrite() [function.fwrite]: send of 11 bytes failed with
errno=10053 An established connection was aborted by the software in
your host machine. in Java.inc on line 815
---------
Looking at the JavaBridge log file, it shows:
--------
Mar 13 15:54:37 VMBridge FATAL: An error occured:
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.lang.StringCoding$StringEncoder.encode(Unknown Source)
at java.lang.StringCoding.encode(Unknown Source)
at java.lang.String.getBytes(Unknown Source)
at php.java.bridge.FileLogger.log(FileLogger.java:70)
at php.java.bridge.FileLogger.log(FileLogger.java:109)
at php.java.bridge.Util.println(Util.java:358)
at php.java.bridge.JavaBridge.logDebug(JavaBridge.java:360)
at php.java.bridge.Parser.CALL_BEGIN(Parser.java:132)
at php.java.bridge.Parser.parse(Parser.java:195)
at php.java.bridge.Request.handleRequest(Request.java:377)
at php.java.bridge.Request.handleRequests(Request.java:485)
at php.java.bridge.http.ContextRunner.run(ContextRunner.java:140)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
--------
So it seems it is failing because of memory issues, right? Is there a
way to configure the amount of memory for the JavaBridge?
Thanks!
Antonio
|