Migration Solutions for ColdFusion Applications to ASP.NET
      
New Atlanta Product Forums Profile | Search | Login | RSS
New Topic Reply   Previous Page  Page: 1   Next Page

Thread: Help with ServletExec 4.2.0.22
Created on: 07/24/09 05:33 PM Replies: 15
mogwai


Joined: 07/24/09
Posts: 11
Help with ServletExec 4.2.0.22
07/24/09 5:33 PM

We are currently running ServletExec 4.2.0.22 on a Windows 2000 server. It is used in conjunction with Coda E-Finacials.

Earlier today there was an issue with the databse cluster the Coda resides on. The usual method to make Coda work after a reboot of the database server is to restart the application server and the web server. Which I did.

However I cannot get ServletExec 4.2.0.22 to connect to Coda for either the live instance or the dev instance. I get the initial screen of the admin console when I pick either instance I get the following error message"Failed to connect to ServletExec.
Group = smiter-live
Address = 127.0.0.1:8889
The error number is 10061"

I have tried running the startup.bat with DBMON running but I don't get any output in the DBMON window at all.

Has anyone got any thoughts?
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/24/09 6:42 PM

Open a DOS Window (i.e. command prompt).
cd (change directory) to the folder where both StartServletExec.bat and StopServletExec.bat reside.

Manually invoke StopServletExec.bat by typing it out with your keyboard (i.e. don't just double-click that batch file).

Do you get any errors?

If so it is likely because the SE AS instance was not running to begin with (an SE AS instance can't hear the shutdown message unless it is up and running in the first place).

Once you've completed that sanity check do this:

1. delete all ServletExec.log files for the instance you are working with.
2. manually invoke the StartServletExec.bat file by typing it out with your keyboard (i.e. don't just double-click that batch file).

Do you get any errors?

If so then hopefully they will give a clue as to why the SE AS instance can't startup.

Is a new ServletExec.log file created?
If so, does it contain any clues?


DBMON won't show you much when using SE AS, and won't show you anything at all when accessed remotely (via Windows Remote Desktop for example).

DBMON is more useful for SE ISAPI


Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mogwai


Joined: 07/24/09
Posts: 11
RE: Help with ServletExec 4.2.0.22
07/25/09 7:46 AM

I will try that on Monday.

Thanks
Link | Top | Bottom
mogwai


Joined: 07/24/09
Posts: 11
RE: Help with ServletExec 4.2.0.22
07/25/09 2:07 PM

I have followed your steps above. The error that I now get reported is "Error occurred during initialization of VM
Could not reserve enough space for object heap".

I presume this is not talking about ram as the server has 3Gb of ram available.

The memory parameters in the startserveletexec.bat are:

-Xms1024m -Xmx1024m -XX:MaxPermSize=256m.
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/27/09 10:27 AM

What happens if you remove -XX:MaxPermSize=256m ?

Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mogwai


Joined: 07/24/09
Posts: 11
RE: Help with ServletExec 4.2.0.22
07/27/09 3:03 PM

Hi Matt,

I have found a solution to the issue. This being to drop the xmx and xms to 768 Mb. Any higher e.g. 802 Mb and the above error returns.

The server has been running at 1024 mb for at least 2 years. The server in question has at least 3 Gb of free ram.

Can you think of anything I can look at as to why the above might of happend?
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/27/09 3:16 PM

View your available RAM via the Windows Task Manager.
If it shows well over 1GB free then I'm not sure why the JVM is not being allowed to take 1GB for itself.

Perhaps a Windows update has added some new Windows security "feature" that is preventing the JVM from taking 1GB (just a guess).

Can you reproduce this problem on another machine?


Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mogwai


Joined: 07/24/09
Posts: 11
RE: Help with ServletExec 4.2.0.22
07/27/09 4:06 PM

Funny you should say that. I had the old live web server switched back on after we had moved live onto the same server as dev.

It has the exact same issue and the same cure. Which would kind of rule out windows updates as it had been off for so long its computer account had been deleted from Active directory. Also it is Windows 2000 Server and I don't think updates get deployed automatically.
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/27/09 6:51 PM

How much free RAM did Task Manager report?

What if you make a copy of StartServletExec.bat and name it StartHelloWorld.bat.
Then edit StartHelloWorld.bat to run a simple HelloWorld java program instead of running ServletExec.

Does -Xms1024m work then?

You'll need to run it from a command window rather than double-clicking it else you won't be able to read the results.

Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mogwai


Joined: 07/24/09
Posts: 11
RE: Help with ServletExec 4.2.0.22
07/28/09 10:46 AM

As I am not too up on Java. Would I do this by downloading a .jar file and replacing the current multitude of .jar files in classpath with just this one .jar file?
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/28/09 11:17 AM

No.


1.
copy/paste the following (minus the ----- lines) to a new file named "HelloWorld.java (into a new empty folder).

---------
public class HelloWorld
{
   public static void main(String[] args)
   {
      System.out.println("\n\n\n ***** Hello World!!! *****");
   }
}
---------

2.
copy/paste the following (minus the ----- lines) to a new file named "HelloWorld.bat" (into that same folder).

---------
set orig_cp=%CLASSPATH%
set java_home=C:\Program Files\Java\jdk1.6.0_12\bin

"%java_home%\javac" -classpath ".;%orig_cp%" HelloWorld.java

"%java_home%\java" -classpath ".;%orig_cp%" -Xms1024m HelloWorld

set orig_cp=
set java_home=
---------

3.
edit the path in the 2nd line of that file to point to your JVM.

4.
From a command prompt, invoke the batch file by typing it out with your keyboard.

Does it work or fail?
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/28/09 11:20 AM

Note that I just updated my last post to include ".;" in the classpath that is passed to both javac and java.

Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mogwai


Joined: 07/24/09
Posts: 11
RE: Help with ServletExec 4.2.0.22
07/28/09 2:54 PM

I have tried your above code. Unfortunatly it doesn't work as Javac.exe is not present. This maybe down to the server only having Java 1.4.2_07 in the bin folder.

Can I try it any other way?
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/28/09 3:22 PM

If your Java installation is missing javac.exe then that means it is only a JRE and not a JDK.

So please send email to support@servletexec.com referencing this thread.

I will reply with HelloWorld.class attached so that you don't have to compile it on your system.

Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/29/09 1:42 PM

Mogwai (Russell):

To conclude this issue I will summarize here our most recent email correspondence:


You said:

--------
Without the MaxPermsize it works. This applies to the HelloWorld as well as the one for Coda. Also if I put maxpermsize back the highest value I can use is 80Mb. What is the likely impact from not using this parameter?
--------



My response:

--------
MaxPermSize is not a parameter that the ServletExec installer puts into
that batch file.
Someone must have added it to that file.

I don't know what the impact is of using or not using the MaxPermSize
parameter. I know that SE does not need it. But I can't say the same for
the code you are running inside SE. I don't know how your code might
react when run inside a JVM that does not use that parameter.

You might want to read about that parameter here:

http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
--------


Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Help with ServletExec 4.2.0.22
07/29/09 1:54 PM

Note that the link in my last post says:

----
Options that are specified with -XX are not stable and are not recommended for casual use.
----
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom

New Post
Please login to post a response.


company media information terms of use privacy policy contact us
This page was dynamically built on the BlueDragon CFML Engine