Solved

urgent: windows server 2003- how to avoid IIS connection time out.

Posted on 2004-08-02
16
847 Views
Last Modified: 2008-01-09
Dear expert,

I recently bought a windows server 2003 web edition.  I've set up and run the web site with no problem.  However, I allow the server to run .asp and .aspx application, there is a script excute turn of course.  For some reason, the web server is running fast sometime when i reboot or restart IIS.  If I leave the web server for few hours and have had many people enter the site, then it causes the web run slow.  I don't know the problem due to many script excute or not.  Would anyone have a thought or have an experience of doing something to prevent thing happen like this.  Would you please share..

FYI:  I have two domains set up on the same server:  one runs .asp and .aspx and other runs .html

I don't have any problem with .html web site, but the .asp and .aspx it does

secondly,  How do i set up a remote access from outside to access to web server.?  Just in case I want to restart the IIS or restart local server.   Thanks  
0
Comment
Question by:princeofem
  • 5
  • 4
  • 3
  • +2
16 Comments
 
LVL 17

Expert Comment

by:Microtech
ID: 11694069
The second question : do you have a firewall? if so you will need to open port 3389 and NAT it to the internal ip address of your server, and then you will need to accept incoming connections for the server, you do this by right clicking on my computer > properties> then click on the remote tab> then tick the bottom box ...

you will need the credentials of the server... and you will need your static ip to remote desktop to it.... for best security only allow your ip through on the firewall.
0
 

Author Comment

by:princeofem
ID: 11694120
i'm using linksys router...i personlly don't install firewall.  But i'm sure the router does..  would you be specific on question 2.  I'm not quite understand.  Where do I open port 3389 and NAT?
0
 
LVL 17

Expert Comment

by:Microtech
ID: 11694180
Right the router you are using basically is natting router. Basically routes traffic from outside ports to ip addresses to internal ports. on the web interface of your router or telnet interface you should see one of the following > port forwarding > virtual server > or something like that... if you post the exact model I can help out ..... but when we open this port other people will be able to try their luck on port 3389 ( the port used for remote desktop and terminal services).  
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11696309
What does Remote Desktop have to do with IIS running slowly?

You only need to open port 3389 for Remote Desktop (Terminal Services).

Ports 80 and 443 are what you need for IIS and you only need 443 if you are using SSL.

The web server running slowly is most likely due to problematic scripts either using a lot of CPU time or leaking resources of one sort or another.

When the scripts are running slowly what does your CPU and Memory useage look like?

Dave Dietz
0
 
LVL 3

Expert Comment

by:MartijnMoree
ID: 11697391
Is this asp built for IIS5 on Windows 2000? If so, you may have to rebuild the scripts. IIS6 is designed to recycle the worker processes and you have to adjust your code to accomodate that.
0
 
LVL 17

Expert Comment

by:Microtech
ID: 11697501
Dave I was only answering the second question
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11698084
Oops.  Sorry.  It's a Monday and I didn't see the second part of the question.....  :-(

Dave Dietz
0
 

Author Comment

by:princeofem
ID: 11700242
i'm using windows server 2003.  Is there a way to not mess around with code.  My web site is running slow due to script execute.  I'm not sure how to adjust on the server.  I only have 30 users access to my .asp page and after 1 hour, the web site run slow and i have to restart IIS to clear the session.  Do you have any solution?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11700275
You could set the Application Pool to recycle itself after half an hour or after a certain number of requests.  You could also configure it to recylce after allocating a certain amount of memory, but that would only work if the memory usage is what's making everything run slowly.

Are there any other symptoms other than the scripts running slowly?

Dave Dietz
0
 
LVL 10

Expert Comment

by:jhautani
ID: 11702534
I have a site which uses heavy SQL queries in ASP scripts. The site was hanging after some 10-20 users before I tweaked the setting below:
 http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-us/iisRG_SCA_13.mspx
More of tuning IIS 6 can be found at:
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-us/iisRG_SCA.mspx

hope this helps
0
 

Author Comment

by:princeofem
ID: 11715872
I read this article, but still did not know how to change ASPProcessorThreadMax.  Can you show me where I can change this.  I open IIS Manager, but did not see any thing like ASPProcessorThreadMax

1.
 In the IIS metabase, change ASPProcessorThreadMax from 25 (the default) to 50 threads.
 
2.
 Restart the WWW service.
 
0
 
LVL 10

Accepted Solution

by:
jhautani earned 500 total points
ID: 11718705
This value and many other parameters must be edited directly to Metabase.xml, which is the IIS config file.

-At command prompt type iisreset /stop, and press ENTER. Leave the command window open.
-Open MetaBase.xml with notepad. The file is located in the systemroot\System32\Inetsrv folder.
-Search for string 'AspProcessorThreadMax' and change the value within quotes
            AspProcessorThreadMax="25"
-Save changes to MetaBase.xml.
-At the command prompt, type iisreset /start, and then press ENTER.

Manual to Metabase editing is here:
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-us/iisRG_MET.mspx

 
0
 

Author Comment

by:princeofem
ID: 11726251
I have changed ASPProcessorThreadMax to 50, but after 40 users using the web, and the respond time is running slow.  I have access to your link above, hearing there is a nonblocking and blocking request.  I'm not sure what is that mean.  I have changed the Applicationpools recycle work processes from 1740 down to 120 minutes, and also 192 MB for CPU memory.  I don't know if there any other option that helps server respond time quicker.  Do you have any suggestion.?  Thank you for your help.
0
 
LVL 10

Expert Comment

by:jhautani
ID: 11733481
Increase worker processes in your application pool. Setting is AppPool's Properties->Performance->Web Garden

You can try IISState tool from IIS6 Resource Kit to find out what is causing slowness. Downloadable here:
http://www.microsoft.com/downloads/details.aspx?familyid=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en
0
 

Author Comment

by:princeofem
ID: 11752898
Thanks for your help.  The server is getting better now.
0
 
LVL 17

Expert Comment

by:Microtech
ID: 11752919
have you managed to NAT the firewall for external access?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
home drive migration 16 77
Instant VM Recovery 4 86
Server 2003 x64 upgrade question 10 44
heat agent push through GPO 2 49
The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

13 Experts available now in Live!

Get 1:1 Help Now