I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-02-04 06:17:30.369442-08 by chrei in response to 13175
Re: Limit Java memory usage when using Java from Perl
Inline::Java has an EXTRA_JAVA_ARGS option you may mention when doing "use Inline". There you can supply arguments for the JVM start and here the -Xmx option limits the heap memory the JVM has available. For an example have a look into the perldoc of Inline::Java and search for EXTRA_JAVA_ARGS. Note that the real memory footprint of the JVM will be 10-20% higher as you just limit heap memory but this is usually sufficient to keep the JVM's memory consumption under control.

Christian

Direct Responses: Write a response