Re: [jruby-user] Out of memory problem with JRuby-Complete

Ben Browning <[email protected]>
Newsgroups gmane.comp.lang.jruby.user
Message-ID <[email protected]>
I wonder if this issue is related to 
https://github.com/jruby/jruby/issues/1888. Basically, there is a memory 
leak in JRuby 1.7.13 triggered by loading files from a jar, which 
happens quite a lot when you use jruby-complete.jar to run an application.

If you're up for building from source, the "jruby-1_7" branch in git has 
a fix for this issue.

Ben

On 08/19/2014 07:12 AM, Cees Zeelenberg wrote:
> Hi,
> I am working on a windows desktop application where I use JRuby for
> developing the application and JRuby-Complete to package the application
> in a jar. The application uses a fair number of external libraries -
> including Qt for the user interface - but so far I have had no trouble
> in running the packaged version once the JRuby version worked.
> Recently I added functionality to the application to interoperate with
> Microsoft Word using WIN32OLE. This works very nicely under JRuby using
> the jruby-win32ole-0.8.5 gem, but when I run the same program using
> JRuby-Complete, I consistently get the errormessage :
>
>     "Can't QI object for IDispatch"
>
>   Inspecting the error condition that leads to this message, it appears
> that the interfacing software in the gem runs out of memory ( Windows
> error: 0x8007000E ; E_OUTOFMEMORY).
> I don't know if there is a difference in memory allocation policy
> between the two JRuby implementations. I have experimented with
> explicitly setting heap and stacksizes for JRuby-Complete e.g.
>
> java -Xms256m -Xmx500m -Xss1024k -cp
> lib\java\jruby-complete-1.7.13.jar;(other jars) org.jruby.Main
> src\jruby_bootstrap.rb
>
> But that made no difference to the error.
>
> Any suggestions how I may solve this problem are very welcome
>
> Cees Zeelenberg
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.