HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: csh (cgi scripts) occasionally hang
Operating System - HP-UX
1834650
Members
2462
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 09:33 AM
05-14-2002 09:33 AM
I've been working on this problem with one of our developers and like to bounce it off of some of you to get some ideas. Last Friday we took a 10 minute outage due to resource (fork) limit reached for the www user on our web server. I found that the www user had 44 csh (cgi scripts) running for as long as 2 weeks (they should only run for seconds). I have the developer looking into this problem now, it appears that the proper exits are in place in the scripts. The only commonality with all of these scripts is they all source in other files. I'm not aware of a problem using source in cgi scripts, does anyone have an idea what could be causing these scripts to hang? It's also important to note that this problem doesn't happen every time the scripts are run - just occasionally. Thanks for any ideas
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 10:03 AM
05-14-2002 10:03 AM
Re: csh (cgi scripts) occasionally hang
do any of the scripts remove files to which other processes (or other of these similar scripts) may also have access too?
HTH
mark
HTH
mark
the future will be a lot like now, only later
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 10:59 AM
05-14-2002 10:59 AM
Solution
I don't deal much with shell scripting cgi (sh, ksh, csh), but I can give you some things to consider:
Most modern web server support the concept of cgi script timeout - set it to something like 300 seconds. This timeout kills scripts that hang for indeterminate reasons.
-look for directives named timeout, cgi timeout, and cgi expiration timeout.
Have your coders add a signal handler in their scripts (probably harder in shell, easier in C and perl) that alarms after n seconds - the handler kills the running process.
Look at things like iPlanet - in their new script model, they unbind the script from the server so that the server isn't penalized for what the script does.
Tune up maxuprc.
Tune up your max server settings in your web server (or threads if that's appropriate).
Most modern web server support the concept of cgi script timeout - set it to something like 300 seconds. This timeout kills scripts that hang for indeterminate reasons.
-look for directives named timeout, cgi timeout, and cgi expiration timeout.
Have your coders add a signal handler in their scripts (probably harder in shell, easier in C and perl) that alarms after n seconds - the handler kills the running process.
Look at things like iPlanet - in their new script model, they unbind the script from the server so that the server isn't penalized for what the script does.
Tune up maxuprc.
Tune up your max server settings in your web server (or threads if that's appropriate).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 11:03 AM
05-14-2002 11:03 AM
Re: csh (cgi scripts) occasionally hang
Mark, good point. We're looking at that now.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP