OpenVZ Forum


Home » General » Support » Services inside container very slow to start
Services inside container very slow to start [message #35620] Wed, 08 April 2009 19:58 Go to next message
kiddbios is currently offline  kiddbios
Messages: 6
Registered: March 2009
Junior Member
Anybody have any idea why services within a container would be very slow to autostart. When we start VZ the container comes up very quickly and allows us to go into it. However, the services take a long time to actually start loading. When we start the services individually they come right up, maybe 10-20 seconds. When the services auto-start from bringing up a container it takes them 5 minutes or more. There are 3 services in question: Httpd, MySQL and Asterisk.

[Updated on: Wed, 08 April 2009 20:00]

Report message to a moderator

icon9.gif  Re: Services inside container very slow to start [message #35738 is a reply to message #35620] Mon, 20 April 2009 06:52 Go to previous messageGo to next message
bbhenry is currently offline  bbhenry
Messages: 17
Registered: February 2009
Junior Member
I have the same issue.

I see you talked about http, mysql and Asterisk. Seems like we are trying to achieve similar tasks here. I have migrated a PBX in a flash to VE. And I found from /var/log/messages , once the xinetd started, it took another 3 minutes to finish all other service at boot. What's going on? I actually have 2 different HN, the one with ubuntu server has this problem . But the one with a CentOS HN don't have this issue, everything start right at the same minute.

Here is the log for the VE that runs on the Ubuntu(Debian) Hardware Node:

Apr 19 23:30:30 piaf xinetd[590]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Apr 19 23:30:30 piaf xinetd[590]: Started working: 1 available service
Apr 19 23:33:49 piaf init: no more processes left in this runlevel

Here is the log for the VE that runs on the CentOS hardware Node:

Apr 19 23:20:36 piaf xinetd[3524]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Apr 19 23:20:36 piaf xinetd[3524]: Started working: 1 available service
Apr 19 23:20:52 piaf init: no more processes left in this runlevel


Any other thing or service that could be causing the slow down? or is there something we need to change in xinetd's config file? By the way, the kernel version on Ubuntu is 2.6.24-23-openvz.
Re: Services inside container very slow to start [message #35746 is a reply to message #35620] Mon, 20 April 2009 11:52 Go to previous messageGo to next message
kiddbios is currently offline  kiddbios
Messages: 6
Registered: March 2009
Junior Member
Our issue ended up being with Sendmail not being able to start because of a network configuration. Try disabling that and see what it gets you.
icon14.gif  Re: Services inside container very slow to start [message #35748 is a reply to message #35746] Mon, 20 April 2009 16:29 Go to previous message
bbhenry is currently offline  bbhenry
Messages: 17
Registered: February 2009
Junior Member
Surprised

Hi, thank you for the solution. You are right, once I disabled sendmail service, things went back to normal. Great find.

Previous Topic: NAT crash with Debian Lenny default kernel
Next Topic: ipt_recent is now missing?
Goto Forum:
  


Current Time: Fri Jul 19 07:19:01 GMT 2024

Total time taken to generate the page: 0.03338 seconds