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

Christian MICHON <[email protected]>
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CACx2yF_oiEN2ApFXYKU+nFVVO8KL6Yt8mSr9ihfeDQqQXFCwTw@mail.gmail.com>
Hi,

so now your application is not portable: it's Windows specific, because of
win32ole. Worse: you need the software MS word to be installed. This
reduces the number of people who might help you out in this community.

If you still wish to keep this way forward, please have a look at the
memory availabe on your machine, and how pagefile.sys is configured on your
windows OS. I suggest to contact the win32ole maintainers.

Now there's real hope: make your application portable on JVM. Try Apache
POI and stay in the java world.

You might still need to increase your heap, and if you're using jvm 7 or 8
(please use JDK not JRE), you could use java control monitor to have a look
at your jruby memory allocation.

Good luck!


On Tue, Aug 19, 2014 at 1:12 PM, Cees Zeelenberg <[email protected]>
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
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


-- 
Christian
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.