Apache, cgi forms, cgi programs - Issues and problems

Apache, cgi forms, cgi programs - Issues and problems

Post by Mar » Wed, 21 Nov 2001 08:38:19



Hi,

This is a very strange occurance.

Running Apache 1.3.19
Sun Ultra 2 w/512 meg

We are running several web servers on this box.
Maybe about 25 total. We also use a shopping cart program
written in cgi. Our email form scripts are written in cgi.
Ok, here is the weird and strange happenings we are running into.

Every so often the shopping cart program will not allow
you to "view the next 25 items". Clicking that button just brings them
back to the shopping carts home page.
When this happens with the cgi forms, submitting the form
returns an error as if their is a field missing and there are not any
missing or empty fields.

Now if I "./apachectl restart", both of the above seems to work fine.
Then a couple hours, sometimes a day, sometimes a few days or even a week later
it happens again. We never know unless a client calls about the form
not working.

I'm thinking there may be some sort of process that gets killed.
Any ideas on what that process would be?
Any way to monitor the system to find out what process that would
be or what is happening to it?

I am lost with this issue.
Any help is greatly appreciated.

Thanks

Marc

 
 
 

Apache, cgi forms, cgi programs - Issues and problems

Post by Dr Hackenbus » Sat, 24 Nov 2001 14:38:46



Quote:> Hi,

> This is a very strange occurance.

...

Quote:> Every so often the shopping cart program will not allow
> you to "view the next 25 items". Clicking that button just brings
them
> back to the shopping carts home page.
> When this happens with the cgi forms, submitting the form
> returns an error as if their is a field missing and there are not
any
> missing or empty fields.

> Now if I "./apachectl restart", both of the above seems to work
fine.
> Then a couple hours, sometimes a day, sometimes a few days or even a
week later
> it happens again. We never know unless a client calls about the form
> not working.

> I'm thinking there may be some sort of process that gets killed.
> Any ideas on what that process would be?
> Any way to monitor the system to find out what process that would
> be or what is happening to it?

Just out of interest, what is the value of MacRequestsPerChild ? in
httpd.conf.

The default is 0, which means &math:infinity;.

Is there any leakage in your shopping cart application ?

[yes, I know and love garbage-collected Perl, but it isn't perfect]

When you restart your server, all of the processes get restarted too.
This makes resource leaks go away. Also, do you trap all possible
errors ?
Are you running out of resources like file descriptors ?

 
 
 

1. Apache, cgi forms, cgi programs - issues - restart resolves issue??

This is a very strange occurance.

Running Apache 1.3.26 or other versions (tried several)
Sun Ultra 2 w/1536 meg
Solaris 8

Same issue on other machines running similar configs

We are running several web servers on this box.
Maybe about 25 total. We also use a shopping cart program
written in cgi. Our email form scripts are written in cgi.
Ok, here is the weird and strange happenings we are running into.

Error log reports malformed headers when a form is submitted
while this is happening.

Every so often the shopping cart program will not allow
you to "view the next 25 items". Clicking that button just brings them
back to the shopping carts home page.
When this happens with the cgi forms, submitting the form
returns an error as if their is a field missing and there are not any
missing or empty fields.

Now if I "./apachectl restart", both of the above seems to work fine.
Then a couple hours, sometimes a day, sometimes a few days or even a week later
it happens again. We never know unless a client calls about the form
not working.

I'm thinking there may be some sort of process that gets killed.
Any ideas on what that process would be?
Any way to monitor the system to find out what process that would
be or what is happening to it?

I am lost with this issue.
Any help is greatly appreciated.

Thanks

2. Konqueror Window Basic Questions

3. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

4. Multi processor?

5. Cannot execute CGI programs in /cgi-bin with Apache

6. Getting rid of email from uucp

7. problem running cgi-forms on apache!!!!!! please help

8. Question about variable TZ (TimeZone)

9. Apache mod_rewrite POST form CGI handler parameter problem

10. problem running cgi-forms on apache!!!!!! please help

11. cgi program which is a daemon/starting daemon from cgi

12. Apache/CGI: How to toggle an ErrorDocument from a CGI ?

13. CGI works as program, not as FORM ACTION?!?!