Hi, I got the solution:
use Inline (Java => 'STUDY', J2SDK => '/opt/abc/tools/java', STUDY => [], PORT => 4500, EXTRA_JAVA_ARGS => '-Xmx196m' <<<<===== SEE HERE ); use Inline::Java qw(study_classes); Thanks, Mahesh "Mahesh Babu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Environment: Solaris 8, Perl 5.6.1, Inline::Java 0.44 or Inline::Java 0.45 > I am getting out of memory exception when running my inline > java code from perl. > > The maximum size the perl process gets to is145MB, consistently > after that it throws an > > Out of memory exception during anyof the java method calls. > > This out of memory exception is coming when run in JNI mode only. > > When the same program is run in Client/Server mode, things are fine as > separate java process gets more memory then. > > I want to run in JNI to get the performance advantage. > > Any pointers, suggestions are welcome. > > Thanks, > Mahesh > >