OpenVZ Forum


Home » General » Support » about openVZ support thread problem
icon9.gif  about openVZ support thread problem [message #35740] Mon, 20 April 2009 09:23 Go to next message
christ.qi is currently offline  christ.qi
Messages: 6
Registered: April 2009
Location: BeiJing
Junior Member
hello everybody!

manual compile apache2.11 mpm with worker

configure make make install all passed

but it cann`t work

compile mpm with prefork no problem all ok!


follow apache error-log report and OS version

[root@vz2 apache]# tail -f logs/error_log
[Mon Apr 20 12:31:13 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 20 12:31:13 2009] [notice] Digest: done
[Mon Apr 20 12:31:13 2009] [notice] Apache/2.2.11 (Unix) DAV/2 configured -- resuming normal operations
[Mon Apr 20 12:31:13 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread
[Mon Apr 20 12:31:13 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread
[Mon Apr 20 12:31:13 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread
[Mon Apr 20 12:31:15 2009] [alert] No active workers found... Apache is exiting!


[root@vz2 apache]# cat /etc/redhat-release
CentOS release 5.3 (Final)

I`m english is very pool . excuse


大家好!

我在openVZ 上手动编译apache2.11 MPM 使用worker 模式的时候出现了问题。
编译的时候都正常。但是不能启动。上面是错 误日志里的报告。
我编译apache使用prefork模式就没有问题 。

我想问的是系统模板的问题还是openVZ对线程支 持有问题。
Re: about openVZ support thread problem [message #35743 is a reply to message #35740] Mon, 20 April 2009 09:52 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:


Cannot allocate memory


Check /proc/user_beancounters.
Re: about openVZ support thread problem [message #35744 is a reply to message #35743] Mon, 20 April 2009 09:57 Go to previous messageGo to next message
christ.qi is currently offline  christ.qi
Messages: 6
Registered: April 2009
Location: BeiJing
Junior Member
maratrus wrote on Mon, 20 April 2009 17:52

Hi,

Quote:


Cannot allocate memory


Check /proc/user_beancounters.


[root@vz2 /]# cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      102:  kmemsize        1486663    1799810   11055923   11377049          0
            lockedpages           0          0        256        256          0
            privvmpages        4772       7230      65536      69632          0
            shmpages             46         46      21504      21504          0
            dummy                 0          0          0          0          0
            numproc              19         24        240        240          0
            physpages          2344       2717          0 2147483647          0
            vmguarpages           0          0      33792 2147483647          0
            oomguarpages       2344       2717      26112 2147483647          0
            numtcpsock            4          4        360        360          0
            numflock              3          4        188        206          0
            numpty                1          1         16         16          0
            numsiginfo            0          2        256        256          0
            tcpsndbuf         35776          0    1720320    2703360          0
            tcprcvbuf         65536          0    1720320    2703360          0
            othersockbuf       6708       8620    1126080    2097152          0
            dgramrcvbuf           0       8380     262144     262144          0
            numothersock          6          8        360        360          0
            dcachesize            0          0    3409920    3624960          0
            numfile             367        499       9312       9312          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent             4          4        128        128          0

[Updated on: Mon, 20 April 2009 10:01]

Report message to a moderator

Re: about openVZ support thread problem [message #35745 is a reply to message #35744] Mon, 20 April 2009 10:31 Go to previous messageGo to next message
schjeall is currently offline  schjeall
Messages: 27
Registered: February 2009
Location: Denmark
Junior Member
Hello

Please make sure that you have re-created the problem before you post UBC.

1. Start the VE, see that it fails.
2. Then post your UBC.


Maybe you have already done it in the correct order?
Re: about openVZ support thread problem [message #35752 is a reply to message #35745] Tue, 21 April 2009 02:45 Go to previous messageGo to next message
christ.qi is currently offline  christ.qi
Messages: 6
Registered: April 2009
Location: BeiJing
Junior Member
schjeall wrote on Mon, 20 April 2009 18:31

Hello

Please make sure that you have re-created the problem before you post UBC.

1. Start the VE, see that it fails.
2. Then post your UBC.


Maybe you have already done it in the correct order?


Hi !

Sorry I don`t understand what is VE、UBC.

UBC is User_BeanCounter ?

VE is .... ? I don`t know .

I`m beginner.

OK . NOW re-created PVS and post new PVS User_BeanCounter and compiled apache mpm with worker User_BeanCounter .
Re: about openVZ support thread problem [message #35753 is a reply to message #35752] Tue, 21 April 2009 03:49 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:


I`m beginner.


Don't worry. Smile
I think you'd better begin with "OpenVZ User's Guide"
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Quote:


UBC is User_BeanCounter ?


Yes, please read
http://wiki.openvz.org/UBC
Re: about openVZ support thread problem [message #35767 is a reply to message #35753] Tue, 21 April 2009 09:22 Go to previous message
christ.qi is currently offline  christ.qi
Messages: 6
Registered: April 2009
Location: BeiJing
Junior Member
maratrus wrote on Tue, 21 April 2009 11:49

Hi,

Quote:


I`m beginner.


Don't worry. Smile
I think you'd better begin with "OpenVZ User's Guide"
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Quote:


UBC is User_BeanCounter ?


Yes, please read
http://wiki.openvz.org/UBC



thank you

Finally solved the problem

modif privvmpages=6553500 problem solved.

privvmpages Memory allocation limit, in pages

Thanks again for post all.


非常感谢各位。

这个问题终于解决了。

解决办法是增大privvmpages的数量

privvmpages Memory allocation limit, in pages

是我看过http://wiki.openvz.org/UBC 之后才知道UBC里面包含了openVZ很多非常重要的 参数。

非常感谢 两位外国朋友。maratrus 和 schjeall 。
Previous Topic: How to address disk device with rootfs inside ve?
Next Topic: vzdev & CVE-2009-1185 ?
Goto Forum:
  


Current Time: Sat Sep 07 15:24:33 GMT 2024

Total time taken to generate the page: 0.06234 seconds