$ lsof -p 18598
COMMAND     PID USER   FD   TYPE             DEVICE    SIZE   NODE NAME
opsview_w 18598 root  cwd    DIR                8,2    4096  51774 /usr/local/opsview-web/script
opsview_w 18598 root  rtd    DIR                8,2    4096      2 /
opsview_w 18598 root  txt    REG                8,2   14040 458975 /usr/bin/perl
opsview_w 18598 root  mem    REG                8,2   80760 147088 /lib/libresolv-2.7.so
opsview_w 18598 root  mem    REG                8,2   22856 147081 /lib/libnss_dns-2.7.so
opsview_w 18598 root  mem    REG                8,2 2104672 457033 /usr/lib/libmysqlclient.so.15.0.0
opsview_w 18598 root  mem    REG                8,2  327232  42611 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
BD/mysql/mysql.so
opsview_w 18598 root  mem    REG                8,2   20128 458859 /usr/lib/libXdmcp.so.6.0.0
opsview_w 18598 root  mem    REG                8,2    9736 458857 /usr/lib/libXau.so.6.0.0
opsview_w 18598 root  mem    REG                8,2  112080 458861 /usr/lib/libxcb.so.1.0.0
opsview_w 18598 root  mem    REG                8,2    5864 458863 /usr/lib/libxcb-xlib.so.0.0.0
opsview_w 18598 root  mem    REG                8,2   56072 147069 /lib/libgcc_s.so.1
opsview_w 18598 root  mem    REG                8,2 1014808 454315 /usr/lib/libstdc++.so.6.0.9
opsview_w 18598 root  mem    REG                8,2  186832 459757 /usr/lib/libpixman-1.so.0.10.0
opsview_w 18598 root  mem    REG                8,2 1060528 458865 /usr/lib/libX11.so.6.2.0
opsview_w 18598 root  mem    REG                8,2   38040 459759 /usr/lib/libXrender.so.1.3.0
opsview_w 18598 root  mem    REG                8,2  200056 458957 /usr/lib/libfontconfig.so.1.3.0
opsview_w 18598 root  mem    REG                8,2  437752 459761 /usr/lib/libcairo.so.2.17.3
opsview_w 18598 root  mem    REG                8,2  283615  42823 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/C
airo/Cairo.so
opsview_w 18598 root  mem    REG                8,2   31720 479496 /usr/lib/perl/5.8.8/auto/Data/Dumper/Dumper.so
opsview_w 18598 root  mem    REG                8,2  149408 457437 /usr/lib/libexpat.so.1.5.2
opsview_w 18598 root  mem    REG                8,2  107796  42677 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/X
ML/Parser/Expat/Expat.so
opsview_w 18598 root  mem    REG                8,2   12528 479533 /usr/lib/perl/5.8.8/auto/MIME/Base64/Base64.so
opsview_w 18598 root  mem    REG                8,2  119688 461572 /usr/lib/perl/5.8.8/auto/POSIX/POSIX.so
opsview_w 18598 root  mem    REG                8,2   47528 147082 /lib/libnss_files-2.7.so
opsview_w 18598 root  mem    REG                8,2   43480 147084 /lib/libnss_nis-2.7.so
opsview_w 18598 root  mem    REG                8,2   93080 147079 /lib/libnsl-2.7.so
opsview_w 18598 root  mem    REG                8,2   35632 147080 /lib/libnss_compat-2.7.so
opsview_w 18598 root  mem    REG                8,2   27224  19615 /usr/lib/perl5/auto/Socket6/Socket6.so
opsview_w 18598 root  mem    REG                8,2  136658  42209 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
ate/Calc/Calc.so
opsview_w 18598 root  mem    REG                8,2   98008 459514 /usr/lib/libart_lgpl_2.so.2.3.20
opsview_w 18598 root  mem    REG                8,2   93536 455403 /usr/lib/libz.so.1.2.3.3
opsview_w 18598 root  mem    REG                8,2  151240 458962 /usr/lib/libpng12.so.0.15.0
opsview_w 18598 root  mem    REG                8,2  513592 458878 /usr/lib/libfreetype.so.6.3.16
opsview_w 18598 root  mem    REG                8,2  307304 459516 /usr/lib/librrd.so.2.0.9
opsview_w 18598 root  mem    REG                8,2   29504  34794 /usr/lib/perl5/auto/RRDs/RRDs.so
opsview_w 18598 root  mem    REG                8,2   27033  42559 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
ateTime/DateTime.so
opsview_w 18598 root  mem    REG                8,2   16153  42977 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/C
lone/Clone.so
opsview_w 18598 root  mem    REG                8,2   36126  42843 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/v
ersion/vxs/vxs.so
opsview_w 18598 root  mem    REG                8,2  140925  42878 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
BI/DBI.so
opsview_w 18598 root  mem    REG                8,2   73609  42217 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/J
SON/XS/XS.so
opsview_w 18598 root  mem    REG                8,2   40880 479506 /usr/lib/perl/5.8.8/auto/Encode/Encode.so
opsview_w 18598 root  mem    REG                8,2   32373  42495 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/T
emplate/Stash/XS/XS.so
opsview_w 18598 root  mem    REG                8,2 5832704 324039 /tmp/opsview/web/session_data
opsview_w 18598 root  mem    REG                8,2   20144 461561 /usr/lib/perl/5.8.8/auto/File/Glob/Glob.so
opsview_w 18598 root  mem    REG                8,2 5832704 324056 /tmp/opsview/web/cache
opsview_w 18598 root  mem    REG                8,2   32594  42324 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
ata/UUID/UUID.so
opsview_w 18598 root  mem    REG                8,2   21403  42901 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
igest/MD5/MD5.so
opsview_w 18598 root  mem    REG                8,2   57491  42464 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/H
TML/Parser/Parser.so
opsview_w 18598 root  mem    REG                8,2   36271  42571 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/V
ariable/Magic/Magic.so
opsview_w 18598 root  mem    REG                8,2   47487  42509 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/S
et/Object/Object.so
opsview_w 18598 root  mem    REG                8,2   52363  42938 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/C
ache/FastMmap/CImpl/CImpl.so
opsview_w 18598 root  mem    REG                8,2  143404  43010 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/Y
AML/Syck/Syck.so
opsview_w 18598 root  mem    REG                8,2   37347  42531 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/P
roc/ProcessTable/ProcessTable.so
opsview_w 18598 root  mem    REG                8,2   21864 461578 /usr/lib/perl/5.8.8/auto/Socket/Socket.so
opsview_w 18598 root  mem    REG                8,2  119315  42649 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/L
ist/MoreUtils/MoreUtils.so
opsview_w 18598 root  mem    REG                8,2   34934  42772 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/C
lass/MOP/MOP.so
opsview_w 18598 root  mem    REG                8,2  139904 479487 /usr/lib/perl/5.8.8/auto/B/B.so
opsview_w 18598 root  mem    REG                8,2   13379  42858 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/S
ub/Name/Name.so
opsview_w 18598 root  mem    REG                8,2   26814  42996 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/P
arams/Util/Util.so
opsview_w 18598 root  mem    REG                8,2   11714  42805 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/D
evel/GlobalDestruction/GlobalDestruction.so
opsview_w 18598 root  mem    REG                8,2   26916  42780 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/C
lass/C3/XS/XS.so
opsview_w 18598 root  mem    REG                8,2   45175  42645 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/L
ist/Util/Util.so
opsview_w 18598 root  mem    REG                8,2   19160 461564 /usr/lib/perl/5.8.8/auto/IO/IO.so
opsview_w 18598 root  mem    REG                8,2   82232 479572 /usr/lib/perl/5.8.8/auto/Storable/Storable.so
opsview_w 18598 root  mem    REG                8,2   13584 461555 /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so
opsview_w 18598 root  mem    REG                8,2   57786  42992 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/P
arams/Validate/Validate.so
opsview_w 18598 root  mem    REG                8,2    7408 479575 /usr/lib/perl/5.8.8/auto/Sys/Hostname/Hostname.so
opsview_w 18598 root  mem    REG                8,2   35784 147089 /lib/librt-2.7.so
opsview_w 18598 root  mem    REG                8,2   32229  42965 /usr/local/nagios/perl/lib/x86_64-linux-gnu-thread-multi/auto/T
ime/HiRes/HiRes.so
opsview_w 18598 root  mem    REG                8,2   10784 461541 /usr/lib/perl/5.8.8/auto/Cwd/Cwd.so
opsview_w 18598 root  mem    REG                8,2   39120 147075 /lib/libcrypt-2.7.so
opsview_w 18598 root  mem    REG                8,2 1436976 147073 /lib/libc-2.7.so
opsview_w 18598 root  mem    REG                8,2  130224 147087 /lib/libpthread-2.7.so
opsview_w 18598 root  mem    REG                8,2  526560 147077 /lib/libm-2.7.so
opsview_w 18598 root  mem    REG                8,2   14624 147076 /lib/libdl-2.7.so
opsview_w 18598 root  mem    REG                8,2 1293648 458977 /usr/lib/libperl.so.5.8.8
opsview_w 18598 root  mem    REG                8,2  127480 147070 /lib/ld-2.7.so
opsview_w 18598 root  mem    REG                8,2  254076 471669 /usr/lib/locale/en_US.utf8/LC_CTYPE
opsview_w 18598 root  mem    REG                8,2      54 471670 /usr/lib/locale/en_US.utf8/LC_NUMERIC
opsview_w 18598 root  mem    REG                8,2    2451 471671 /usr/lib/locale/en_US.utf8/LC_TIME
opsview_w 18598 root  mem    REG                8,2  921214 471672 /usr/lib/locale/en_US.utf8/LC_COLLATE
opsview_w 18598 root  mem    REG                8,2     286 471673 /usr/lib/locale/en_US.utf8/LC_MONETARY
opsview_w 18598 root  mem    REG                8,2   25700 454326 /usr/lib/gconv/gconv-modules.cache
opsview_w 18598 root  mem    REG                8,2      52 471675 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
opsview_w 18598 root  mem    REG                8,2      34 471676 /usr/lib/locale/en_US.utf8/LC_PAPER
opsview_w 18598 root  mem    REG                8,2      77 471677 /usr/lib/locale/en_US.utf8/LC_NAME
opsview_w 18598 root  mem    REG                8,2     155 471678 /usr/lib/locale/en_US.utf8/LC_ADDRESS
opsview_w 18598 root  mem    REG                8,2      59 471679 /usr/lib/locale/en_US.utf8/LC_TELEPHONE
opsview_w 18598 root  mem    REG                8,2      23 471680 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT
opsview_w 18598 root  mem    REG                8,2     373 471681 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
opsview_w 18598 root    0u   CHR              136,2              4 /dev/pts/2
opsview_w 18598 root    1w  FIFO                0,5         181535 pipe
opsview_w 18598 root    2w  FIFO                0,5         181535 pipe
opsview_w 18598 root    3w   REG                8,2   76773 114972 /var/log/opsview/opsview-web.log
opsview_w 18598 root    4u   REG                8,2 5832704 324056 /tmp/opsview/web/cache
opsview_w 18598 root    5u   REG                8,2 5832704 324039 /tmp/opsview/web/session_data
opsview_w 18598 root    6u  unix 0xffff81005e8f2dc0         181608 socket
opsview_w 18598 root    7u  IPv4             181610            TCP *:3000 (LISTEN)
opsview_w 18598 root    9u  unix 0xffff81005e8762c0         181698 socket
opsview_w 18598 root   10u  unix 0xffff81005e876840         181700 socket



22.07.09, 15:14, "Ton Voon" <[email protected]>:
Are you using HTTP::Prefork? http://docs.opsview.org/doku.php?id=opsview3.1:prefork
I just need a snippet of the strace around the EAGAIN. Can you provide some lines around here. Specifically I am looking for the file descriptor that the write() is writing to.
Also, can I have an lsof -p {processid} please. This will identify what the exact file descriptor is.
On 22 Jul 2009, at 11:31, Spoofov Spoof wrote:

strace generates too much output, if I'll leave it on some hours, all disk space will be filled.
About 10 minutes of stracing opsview_web_server.pl maked 200Mb-file. It contains a lot of

write( ... = -1 EAGAIN (Resource temporarily unavailable)

strings.

$ grep "Resource temporarily unavailable" /root/opsview_web_server.strace | wc -l
1931275

22.07.09, 13:39, "Ton Voon" <[email protected]>:

On 22 Jul 2009, at 10:30, Spoofov Spoof wrote:
Opsview is on VMWare virtual machine. When I start it, all works  
fine. Don't know, how long. On the next day I can't get access to  
opsview's web-interface. top on host system shows more than 50  
percents usage of CPU (processor on server have 2 cores, and only  
one of them dedicated for virtual VMWare virtual machine with  
opsview). On guest system with opsview 100% of CPU capability used  
by opsview_web_serber.pl. Why?
Can you get an strace of opsview_web_server.pl to give us an idea of  
what it is doing.
Ton
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Ton Voon
Product Architect



Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

Phone:   
+44 (0) 845 057 7887
Mobile
:   +44 (0) 7931 365796
Skype:   tonvoon     Email:   [email protected]

www.opsera.com
This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although Opsera routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. Opsera Limited is registered in the UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, Surrey, GU21 4RB.

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to