Out Of Memory Issue on Byte Array
My Project is in Flex and Java . From Flex I pass the Argument to Java so when I pass I got the Out Of Memory issue. Kindly see below of my code java and flex
Java Code
========
SQLiteStatement photoNotesResultSet = null;
while(photoNotesResultSet.step())
{
String spath=dbDirectory +"/" +photoNotesResultSet.columnString(2);
}
Flex Code
=========
I am using Flex and Pass the xms arguments
var processArgs:Vector.<String> = new Vector.<String>();
processArgs.push("-Xms1g");
Look forward your reply as soon as possible. Thanks in advance.
Re: Out Of Memory Issue on Byte Array
I have no idea what any of that does, but if that's the JVM Xms argument then 'g' is not valid, so it is probably falling through to the default.
'k', 'K', 'm' and 'M' are the only things (kilobyte and megabyte), there isn't a short version for gigabyte.
I would also recommend using 'Xmx' instead (or both), as I'm not sure what happens if you define Xms but not Xmx.