virtual memory exhausted error while upgrading apache

vgaspar

Registered
Sep 2, 2007
2
0
51
Greetings,

I've got a fedora core 2 server running apache 1.3.37 and I want to upgrade to apache 2.2.
I tried to use easyapache but it's giving me the following error:

virtual memory exhausted: Cannot allocate memory

I was able to figure out that it's while compiling DomXslt (libxml2-2.6.27).
With 'top' I monitored the process and swap memory is not even touched, so I guess that adding more swap memory will not resolve the problem. I also checked the console memory limits with 'ulimit' and virtual memory is set to unlimited.

I was able to successfully compile libxml2-2.6.27 without easyapache, removing the optimization flags for gcc (CFLAGS=-O0). I did the same thing with easyapache following the guide (http://www.cpanel.net/support/docs/easyapache.htm) but I got the same error.

Can anyone help me?

Thanks in advance!
 

vgaspar

Registered
Sep 2, 2007
2
0
51
Solved

Well, I couldn't exactly identify what was the problem but a server restart may have solved it.