On 9/26/06, Gerald Weir <[EMAIL PROTECTED]> wrote:
> Dave,
> I understand what you are saying but it appears that I'm a bit confused.
>
> When I installed CF it came with it's own JVM.  This is in the folder called  
> C:\CFusionMX\runtime\jre and the CF administrator is pointed to it.  It was 
> presumably version 1.4.2_ etc.
>
> Over time I downloaded and updated several JVM's from the Sun website but 
> into the C:\Program Files\Java folder.  So, CF was never aware of those 
> updates and continued to use the 1.4.2_ version in C:\CFusionMX\runtime\jre.
>
> Now, my JVM on the server is at 1.5.0_06 but my CF Server (C:/CfusionMX 
> folder) is at 1.4.2-b28.  The suggestion from Dave C. earlier in the thread 
> was to update to the latest 1.4.2 version which I believe is 1.4.2_12.  But 
> if the CF Server is not recognizing the 1.5.0_06 version I have installed on 
> the server already then a) it won't recognize that I've changed from 1.5 to 
> 1.4.2._12, and b) it shouldn't be having a problem with any conflicts caused 
> by version 1.5 either.
>
> I know it's a lot of number soup but I tried to point the CF java/jvm admin 
> page to the folder with the 1.5.0_06 version in C:/Program 
> Files/Java/jre1.5.0_06 and then I could not restart CF. Maybe this is what 
> you meant in the second paragraph where you noted the heap size/start up 
> problem with JVM 1.5??
>
> So, in the end do I need to update the JVM in the C:/CFusionMX folder instead 
> of the one in the C:/Program Files/Java folder to the most recent 1.4.2_12 
> version???
>
> Thanks so much for your input.  By the way, I'm going to try to arrange to 
> come down to D.C. and take the Advanced CF Class that you have there at 
> figleaf.
>

Hi Jerry. The other Dave this time! ;)

Here's the story. In the /bin directory of your ColdFusion
installation (I don't use the standalone version of CF as you do, but
I believe it's still the same), there is a file named jvm.config. If
you crack open that file, you'll likely see a line that looks like
this:

java.home=C:/j2sdk1.4.2_09

The jvm.config file is a bunch of configuration settings that the
underlying Java engine reads when it is starting up that sets things
like how much memory the JVM should use, class paths where certain
libraries are located, etc. The "java.home" line is a specific
directive that the engine reads when you start it up that says "use
the JVM at the location noted after the equal sign." You can have 100
different Java installations on your machine, but this is the line
that matters.

Do not use the CF Administrator to edit your jvm.config file. In fact,
even Adobe recommends that you don't do so either. Here's why. The
version first switch in the "java.args" line should say -server so
that the JVM starts in server mode as opposed to client mode (only
Java IDEs like Eclipse should really use -client mode). So, a sample
line might read:

java.args=-server -Xmx128M -Xms128m -Dsun.io.useCanonCaches=false

See how the -server switch is first? The CF Administrator in
standalone mode doesn't necessarily put that directive first when it
re-writes the file under the hood, and that will definitely cause CF
not to start (which is what you might have experienced). Here's a link
to a TechNote that outlines this issue further. It notes that it's for
the J2EE version of CFMX, but it happens in the standalone version as
well:

http://www.adobe.com/go/tn_19094

So the bottom line is to make sure that your java.home directive
points to the corrent 1.4.2 JVM. Also, note the other Dave's comment
about a recent Windows hotfix that prevents enough JVM memory from
being consumed. This is why I'm glad I work in a Linux environment!

Hope this helps?

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254332
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to