Service application running slowly on Server 2008 R2

I have a Delphi web server application that receives XML documents via an HTTP post command.  The application does a Firebird database lookup and responds to the HTTP post.  In development and debugging, we compile and run this as a standalone windows application where we can see the input and output.  For production, we re-compile the same code as a windows service.

We are having performance issues with the service application on Windows Server 2008 R2.  It is running about 30 to 50% slower than the standalone application.  On Window Server 2000 and 2003 the performance was the same for the stand alone application and the service.

In troubleshooting the problem, we have recompiled the application to run as an ISAPI dll.  We put this dll under an Apache Web server.  We are seeing the same slow performance with the ISAPI dll.

I have used the Process Monitor (procmon.exe) from sysinternals.com and it appears that both the stand alone application and the service application are doing the same work, but the service is taking longer to do the database lookups.

Any ideas?
DavidCulbertsonAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
DavidCulbertsonConnect With a Mentor Author Commented:
We have upgraded to Delphi 2010 and converted the application to run as an ISAPI dll.  It now runs as fast as the stand alone executable.
0
 
Geert GOracle dbaCommented:
do the apps work on the same database ?
if not, have you put in the same structure ? same indexes ?

is the virus scanner checked the accessed files ?
0
 
DavidCulbertsonAuthor Commented:
The apps are running on the same server, same database, no anti-virus software.  The application is communicating with the database, which is on the same server, via TCP/IP.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Geert GOracle dbaCommented:
windows 2K8 R2 and windows 2K3 are on the same server ???
0
 
DavidCulbertsonAuthor Commented:
No, the service application, and the stand alone application are on the same server.  The service application is slow and the stand alone is faster.

If I take the same database to a 2003 server, the service application and the stand alone application run at the same speed.
0
 
DavidCulbertsonAuthor Commented:
It was a difficult project converting this to an ISAPI dll because we had to remove all references to global variables.  A side benefit is that Apache handles the multi threading for us, so our single threaded code can now accept multiple requests at the same time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.