Solved

Service application running slowly on Server 2008 R2

Posted on 2010-11-22
6
1,540 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:DavidCulbertson
  • 4
  • 2
6 Comments
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 34194876
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
 

Author Comment

by:DavidCulbertson
ID: 34196434
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
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 34196810
windows 2K8 R2 and windows 2K3 are on the same server ???
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:DavidCulbertson
ID: 34196848
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
 

Accepted Solution

by:
DavidCulbertson earned 0 total points
ID: 34252973
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
 

Author Closing Comment

by:DavidCulbertson
ID: 34281162
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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now