Mod_perl and win32 --more experience

2007-03-23 Thread Tümer Garip


Hi all,
There has been quite a few reports about mod_perl causing segment faults
in Win32 boxes on the list (including me). Thanks to all that responded
with suggestions. Here is my latest findings:
1- I have mod_perl2.0.3 apache2.2.4 working on a Windows 2003 box.(Dual
xceleron IBM server)
2- Using standart binaries for perl (activePerl and Apache) is perfectly
fine. No need to compile them yourself.
3- XML::Libxml or anything that uses it like XML::Simple will definitely
crash the system under heavy load. I now use Expat and under most heavy
tests it survives. This is a very usefull package and may be somebody
will look into it.
4- Another culprit was a not a very common package HTML::Template::Pro.
Segment faults  (saying free to wrong pool) again under heavy use. I now
use HTML::Template and works fine.

So I can now say Mod_Perl rocks on a production Library system running
on Windows Box.

Hope it helps to others
Tumer Garip



Re:Re: Modperl crashes on win32

2007-01-27 Thread Tümer Garip
Hi,
No need for any specific code.
A simple CGI script writing some silly sentences to the browser will do
the same.
However I noticed something else.
1-When i test with a concurrency level above 1 right after a fresh
server start it crashes almost 100%.
2-If I gradually increase the concurrency as 1,3,5,10 and keep testing
than it works and it will segmenfault intermittently.
3-I tested with 2.0.4-dev as well. It didnot compile until i upgraded
threads::shared to CPAN version. Things have improved and number of
crashes is reduced.

Thats all i can say at the moment.

Thanks 
Tumer

Perin Harkins wrote:

On 1/25/07, Tümer Garip [EMAIL PROTECTED] wrote:
 We have a production working library system with the above platform.
 Recently we are trying to use Modperl with either PerlRun or Registry
 Everything looks smooth except the intermittent faults i quoted
above.

Can you attempt to isolate the part of  your perl code that's running
when it hits this segfault?

- Perrin




Modperl crashes on win32

2007-01-25 Thread Tümer Garip
Hi all, 
New to the list so bear with me a sec.
Platform: Windows 2003 Server/Apache 2.2.3,ActivePerl5.8.8-819 
Problem: ModPerl 2.0.3 crashes Apache 2.2.3 or 2.2.4 when concurrency
occurs.
Error reported on windows event system:
Faulting application httpd.exe, version 2.2.3.0, faulting module
perl58.dll, version 0.0.0.0, fault address 0x000ead7a.
Or:
Faulting application httpd.exe, version 2.2.3.0, faulting module
perl58.dll, version 0.0.0.0, fault address 0x0003695f.

History:
We have a production working library system with the above platform.
Recently we are trying to use Modperl with either PerlRun or Registry
Everything looks smooth except the intermittent faults i quoted above.

Test Run:
Using ApacheBench tried to isolate the problem.
When concurrency is set to 1 we did not manage to crash the system. Any
concurrency level above 1 system crash occurs 90% of the time. ie yes it
sometimes work!

Remedies tried:
From Isaac Goldstands mail (22 Nov 2006) to the list:
Quote:
In order to avoid the problem I used the __try and __catch which are
used in Microsoft win32 applications changing  :
 inline void FreeShared(void* ptr)
{
GetLockShared();
__try{
m_pVMemShared- Free(ptr);
}
__except(EXCEPTION_EXECUTE_HANDLER)
{   
}   
FreeLockShared();
};
Located in win32\perlhost.h file.
--Unquote.

We applied this patch to perl, recompiled and nothing changed.

We do not have C programmers in hand so we are stuck.
Any help, suggestions is appreciated.

Tumer Garip
NEU Grand Library
Cyprus