From: <php...@li...> - 2007-04-11 10:20:47
|
Hi!! My name is Davide and is my first message on the llist. I'v created a class who make something on a large bytearray stream. After a series of call of the metod "test" the javabridge send OutOfMemory errors. The problem seem that the system don't free the allocated memory. I try also with a singleton class but the problem persist. There are known problem related to passing big size params?? with a memory set to 384M (-Xmx384m) the javabridge fill the memory after 3/4 calls. PHP $data = function_that_return_a_50Mega_byteArray(); java_require(CLASSPATH); $fooClass = new Java("Foo"); $retData = java_values($fooClass->test($data)); JAVA class Foo { public Foo() { } public byte[] test(byte[] inputByteArray) { return inputByteArray; } } I've tried this code too, whith the method "test" that simply return the array; Thanks Davide Fiorello |