mod_svn crashes httpd

Started by Zeitisen, March 04, 2015, 02:45:44 PM

Previous topic - Next topic

Zeitisen

I just startet with a new

apache httpd-2.4.12-x86-vc11,
mod_svn-1.8.11-ap24-x86 and
php-5.6.6-Win32-VC11-x86.zip and
vcredist_x86_VC12

on a new Windows Server 2008
for replaceing the old server with Apache 2.2 and mod_svn 1.8.5, php 5.2 VC6 and then move to https

Now everything seems ok.
But if I try to checkout a working copy, httpd crashes with the following message:


Faulting application httpd.exe, version 2.4.12.0, time stamp 0x54c1cb16,
faulting module MSVCR110.dll, version 11.0.51106.1,
time stamp 0x5098858e, exception code 0x40000015, fault offset 0x000a327c, process id 0x1620,
application start time 0x01d0565f559d5873.


The error logfile shows :


[Wed Mar 04 12:42:51.277330 2015] [authz_svn:info] [pid 6060:tid 488] [client 10.2.145.92:56091] Access granted: 'xxxxxx' OPTIONS SVN_DEMO:/trunk
[crit] Memory allocation failed, aborting process.


Accessing the repostitory with wsvn works without any problem.

Can anybody give me a hint?


mario

Does apache crash without mod svn?

However "Memory allocation failed, aborting process". How much memory is free on that server?

Zeitisen

Without mod_svn I cannot checkout a repository.
Correctly there are two modules mod_dav_svn.so and mod_authz_svn.so
Now I grant permission to everybody and disabled the mod_authz_svn.so
I also disabled PHP.
Same result.

Physical Ram is 4GB. Task manager says "Free 2246"
There is no traffic. At this time I am the only user on this server.

Zeitisen

Now I found the problem:

For increasing server performance, with svn 1.7 a cache was introduced:
subversion.apache.org/docs/release-notes/1.7.html#data-caches


In our configuration this exmple was copied without adapting the cachesize

<IfModule dav_svn_module>
    SVNInMemoryCacheSize 10485760
    SVNCacheFullTexts on
    SVNCacheTextDeltas on
</IfModule>


Unforunately there was no comment indication the unit of cachesize. The unit is KByte!
So in the above example 10 GByte were reserved.

Server memory 4GByte, available about 2GByte.
With former  msvrcr.dll this error was handled in a different way. No crash, it worked in spite of misconfiguring.

Now I reduced the cache size to 100 Mbyte and it works.

But will I get always a crash, if the memeroy is getting low? VC11 is handling this worse than the old ones.



mario

Only if less than 50 MB of RAM is available, but I think than you have another problem ;)