Posted by
Shawn Mikula-2 on
Jun 02, 2008; 6:22pm
URL: http://imagej.273.s1.nabble.com/Problems-running-ImageJ-on-64x-WinXP-with-max-mem-set-to-6-GB-tp3696088p3696091.html
thanks Gabriel, Wayne! From Wayne's email I checked the Memory & Threads
dialog box and sure enough, it said "(32-bit)", even though I had installed
the 64-bit version of Java's JRE. From Gabriel's email, I checked the Tudor
wiki and read that the Java exe "will be typically installed in 'C:\Program
Files\Java\' (and not 'C:\Program Files (x86)\Java\' which is used for 32bit
applications)", which was the key since the Java path in ImageJ.cfg was set
for "Program Files (x86)", and thus was pointing to a 32-bit Java exe. Once
I fixed the Java path in ImageJ.cfg to point to the correct Java exe, it
worked with max mem set to 6 GB.
Sorry for beating a dead horse before more carefully checking online FAQ's
and wikis. Thanks again for your help.
S
----- Original Message -----
From: "Gabriel Landini" <
[hidden email]>
To: <
[hidden email]>
Sent: Monday, June 02, 2008 10:42 AM
Subject: Re: Problems running ImageJ on 64x WinXP with max mem set to 6 GB
> On Monday 02 June 2008, Shawn Mikula wrote:
>> hello ImageJ community,
>> this email may be better addressed to a Java mailing list, but hopefully
>> someone here can help me out... To use ImageJ with images of several
>> GB's
>> in size, I have tried installing the 64x JRE (v1.6) on a 64x WinXP system
>> with 16 GB RAM, but when I use ImageJ with Xmx option set to 6 GB, I am
>> receiving a "Could not create the Java virtual machine" error and early
>> termination of ImageJ. Has anyone used ImageJ on 64x WinXP systems
>> successfully using multi-GB size images? Does anyone have any ideas why
>> Java is not able to create the Java virtual machine?
>
> This question has been asked many times and there is a number of FAQs with
> suggestion in the wiki at the Tudor site.
>
> Cheers,
>
> G.
----- Original Message -----
From: "Wayne Rasband" <
[hidden email]>
To: "Shawn Mikula" <
[hidden email]>
Sent: Monday, June 02, 2008 10:50 AM
Subject: Re: Problems running ImageJ on 64x WinXP with max mem set to 6 GB
>> hello ImageJ community,
>> this email may be better addressed to a Java mailing list, but
>> hopefully someone here can help me out... To use ImageJ with images
>> of several GB's in size, I have tried installing the 64x JRE (v1.6) on
>> a 64x WinXP system with 16 GB RAM, but when I use ImageJ with Xmx
>> option set to 6 GB, I am receiving a "Could not create the Java
>> virtual machine" error and early termination of ImageJ. Has anyone
>> used ImageJ on 64x WinXP systems successfully using multi-GB size
>> images? Does anyone have any ideas why Java is not able to create the
>> Java virtual machine?
>> thanks.
>> Shawn
>
> Shawn,
>
> Are you sure that ImageJ is using a 64-bit version of Java? If it is,
> the title of the Edit>Options>Memory & Threads dialog box will be
> "Memory (64-bit)". I have successfully use the Edit>Options>Memory &
> Threads command to set the memory limit to 12000 MB on a 16GB machine
> running XP64 and a 64-bit version of Java.
>
> -wayne
>