OpenVZ Forum


Home » General » Support » Which CTID for a PID ?
Which CTID for a PID ? [message #44790] Wed, 04 January 2012 13:46 Go to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
Hi, I'm having freeze problems in a server with CentOS 6

tested with 2.6.32-042stab039.11 and 2.6.32-042stab044.11

server blocks and not any error in secure o messages logs.

I have started a console with "htop" command running, and in all downtimes I see a httpd process with 60% of CPU load.

How can I see what VM is running this httpd command?

I try to install vztop, but seems dont run with CentOS6, only with CentOS5.

Any idea to find the malicious CTID ?

Thanks!!
Re: Which CTID for a PID ? [message #44954 is a reply to message #44790] Thu, 19 January 2012 03:28 Go to previous messageGo to next message
ragubhat is currently offline  ragubhat
Messages: 9
Registered: August 2008
Location: India
Junior Member
>> started a console with "htop" command
>>

Which version of htop do you have?

htop can show the CTID of processes, you have to configure htop to do that. Inside htop, go to Setup -> Columns -> Add CTID from the "Available Column" to the "Active Column".

'man vzpid' is your friend too even if you do not have htop.

--
Hth
Raghavendra Bhat
Donate to the GNU Project.
Re: Which CTID for a PID ? [message #44993 is a reply to message #44790] Thu, 19 January 2012 18:24 Go to previous messageGo to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
Hi, thanks for your response, I use:
htop-0.9-1.el6.rf.x86_64.rpm

I think is the latest version, but in available colums, I dont see CTID

It's possible I dont use the correct version?
Thanks!
Re: Which CTID for a PID ? [message #44994 is a reply to message #44790] Thu, 19 January 2012 20:04 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
The problem is that opevz support needs to be enabled at compile time and most of the htop rpms I've seen don't have it. You'll need to either rebuild the rpm and change the switch or build from source.
Re: Which CTID for a PID ? [message #45222 is a reply to message #44994] Tue, 14 February 2012 20:49 Go to previous messageGo to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
Trying to install in CentOS 6, I get error running the ./configure

checking for refresh in -lncursesw... no
configure: error: You may want to use --disable-unicode or install libncursesw.


I do ./configure --disable-unicode
and I get this error:

checking for refresh in -lncurses... no
checking for curses.h... (cached) no
configure: error: missing libraries:  libncurses


# rpm -Uhv ncurses-libs-5.7-3.20090208.el6.x86_64.rpm
Preparing...                ########################################### [100%]
        package ncurses-libs-5.7-3.20090208.el6.x86_64 is already installed



Any idea to compile htop in CentOS 6 ?

Thanks.
Re: Which CTID for a PID ? [message #45225 is a reply to message #44790] Wed, 15 February 2012 00:21 Go to previous messageGo to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
well, I have installed with:

yum install ncurses-devel

but CTID option also dont appears Sad
Re: Which CTID for a PID ? [message #45226 is a reply to message #44790] Wed, 15 February 2012 11:52 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
So you have built it with, if I remember correcty, --enable-openvz switch?

If so, than you need to enable VPID in htop setup. Run htop, press F2, go to "columns" and add VPID.
Re: Which CTID for a PID ? [message #45227 is a reply to message #44790] Wed, 15 February 2012 23:50 Go to previous message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
Thanks!!

wget downloads.sourceforge.net/project/htop/htop/1.0.1/htop-1.0.1 .tar.gz
yum install ncurses-devel gcc make
tar xvzf htop-1.0.1.tar.gz
cd htop-1.0.1
./configure --enable-openvz
make
make install
mv /usr/local/bin/htop /usr/bin/

Wink

[Updated on: Tue, 21 February 2012 19:49]

Report message to a moderator

Previous Topic: What is the default set of capabilities?
Next Topic: Server Inaccessible
Goto Forum:
  


Current Time: Sun May 12 01:09:31 GMT 2024

Total time taken to generate the page: 0.01637 seconds