LoadRunner¸ºÔزâÊÔ£¨Load Test£©Ê±¼à¿ØLinuxµÄÐÔÄÜ
ÔÚ½øÐиºÔزâÊÔ£¨Load Test£©ÊÇÒª¼à¿Ø·þÎñÆ÷µÄCPU¡¢ÄÚ´æ¡¢´ÅÅÌ¡¢ÍøÂçµÄÇé¿ö¡£ÈçºÎ¼à¿ØUbuntuµÄÇé¿öÄØ¡£
1¡¢°²×°rstatd£¬sudo apt-get install rstatd£¬Èç¹ûÎÞ·¨apt°²×°£¬¿ÉÒÔÏÂÔØ°²×°¡£
2¡¢Æô¶¯rpc.rstatd
3¡¢ÔÚLoadRunner ControllerµÄrun½çÃæÖУ¬Ìí¼ÓSystem Resource GraphsϵÄUnix Resource£¬ÔÚUnix ResourceͼÉÏÓÒ¼üAdd Measurements£¬È»ºóµã»÷Add£¬ÌîдipÈç192.168.1.99£¬Ä¬ÈÏÖ»ÓÐÈý¸öÖ¸±ê£¬ÔÚÏÂÃæµÄAddÖпÉÒÔÌí¼ÓÆäËûÖ¸±ê¡£
4¡¢ÏÂÃæ˵һϸ÷ÖÖÖ¸±êµÄÇé¿ö
CPUÖ¸±ê
Average load
ÉÏÒ»·ÖÖÓͬʱ´¦ÓÚ“¾ÍÐ÷”״̬µÄƽ¾ù½ø³ÌÊý£¬Õâ¸öÊýÖµ³ýÒÔCPU¸öÊýÓ¦¸ÃСÓÚ2£¬Èç¹û³¤ÆÚÊÇ2Ö¤Ã÷ÓÐÅŶӵÄ
CPU utilization
CPU µÄʹÓÃʱ¼ä°Ù·Ö±È£¬Èç¹ûÔÚ75%ÒÔÉÏ£¬Ôò¿ÉÒÔ¿¼ÂÇ»»CPUÁË
Swap-in rate
ÕýÔÚ½»»»µÄ½ø³ÌÊý
Swap-out rate
ÕýÔÚ½»»»µÄ½ø³ÌÊý
Context switches rate
ÿÃëÖÓÔÚ½ø³Ì»òÏß³ÌÖ®¼äµÄÇл»´ÎÊý
System mode CPU utilization
ÔÚϵͳģʽÏÂʹÓà CPU µÄʱ¼ä°Ù·Ö±È
User mode CPU utilization
ÔÚÓû§Ä£Ê½ÏÂʹÓà CPU µÄʱ¼ä°Ù·Ö±È
Interrupt rate
ÿÃëÄÚµÄÉ豸ÖжÏÊý
ÄÚ´æ
Page-in rate
ÿÃëÖÓ¶ÁÈëµ½ÎïÀíÄÚ´æÖеÄÒ³Êý
Page-out rate
ÿÃëÖÓдÈëÒ³ÃæÎļþºÍ´ÓÎïÀíÄÚ´æÖÐɾ³ýµÄÒ³Êý
Paging rate
ÿÃëÖÓ¶ÁÈëÎïÀíÄÚ´æ»òдÈëÒ³ÃæÎļþµÄÒ³Êý£¬Èç¹û³ÖÐøÔÚ¼¸°Ù£¬¿ÉÄÜÒª¼Ó´óÄÚ´æÁË
´ÅÅÌ
Collision rate
ÿÃëÖÓÔÚÒÔÌ«ÍøÉϼì²âµ½µÄ³åÍ»Êý
Disk rate
´ÅÅÌ´«ÊäËÙÂÊ
ÍøÂç
Incoming packets error rate
½ÓÊÕÒÔÌ«ÍøÊý¾Ý°üʱÿÃëÖÓ½ÓÊÕµ½µÄ´íÎóÊý
Incoming packets rate
ÿÃëÖÓ´«ÈëµÄÒÔÌ«ÍøÊý¾Ý°üÊý
Outgoing packets errors rate
·¢ËÍÒÔÌ«ÍøÊý¾Ý°üʱÿÃëÖÓ·¢Ë͵ĴíÎóÊý
Outgoing packets rate
ÿÃëÖÓ´«³öµÄÒÔÌ«ÍøÊý¾Ý°üÊý
Ïà¹ØÎĵµ£º
ÔÚLinuxÉϽ¨Á¢LDAP·þÎñÆ÷
ÔÚLinuxÉϽ¨Á¢LDAP·þÎñÆ÷(Ò»)
×÷ÕߣºCarla Schroder;¹Ëâý·Òë ·¢ÎÄʱ¼ä£º2003.12.30
ÄãµÄÍøÂçÔÚ¹æÄ£ºÍ¸´ÔÓÐÔ·½ÃæÕý´¦Óڳɳ¤ÆÚ¡£Ò»Â·´«²¥Ã¿¼þÊÂÎï¡¢·¢Õ¹×³´óÿ¼þÊÂÎïÈ»ºóÔÙ¶ªÆúÿ¼þÊÂÎォռÓÃÁËËüÒ»ÉúµÄʱ¼ä¡£µ±ÄãÍ´¿àµÄË«ÊÖ±§Í·£¬ÊÔͼŪÇå³þµÄʱºò£¬ÄãµÄÓû§²»ÖªµÀ´ÓÄÄÀï·¢ÏÖÁËÄãµÄÃØÃܵ绰ºÅ ......
1¡¢ÒýÑÔ
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not
found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²
ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾Î ......
ÒÔÏÂÊǸöÈ˾õµÃ±È½ÏÏêϸ¶øÇÒÒ×ÓÚÀí½âµÄ¼¸ÆªÎÄÕ£¬ËùÒÔ°ÑËüÒ»ÆðÌù³öÀ´×öΪ±Ê¼Ç£¨Ò»£©¡¢£¨¶þ£©¡¢£¨Èý£©£¬Ò²Ï£Íû¶Ô¹ý·ÕßÌṩһµã·½±ã¡£
µÚ3ÕÂÎļþI / O
3.1 ÒýÑÔ
±¾Õ¿ªÊ¼ÌÖÂÛU N I Xϵͳ£¬ÏÈ˵Ã÷¿ÉÓõÄÎļþI / Oº¯Êý——´ò¿ªÎļþ¡¢¶ÁÎļþ¡¢Ð´ÎļþµÈµÈ¡£´ó¶àÊýU N I ......
ÔÚ UNIX ϵͳÖУ¬Óû§´´½¨Ò»¸öнø³ÌµÄΨһ·½·¨¾ÍÊǵ÷ÓÃϵͳµ÷Óà fork¡£µ÷ Óà fork µÄ½ø³Ì³ÆΪ¸¸½ø³Ì£¬¶øд´½¨µÄ½ø³Ì½Ð×ö×Ó½ø³Ì¡£ÏµÍ³µ÷ÓõÄÓï·¨¸ñʽ£º
pid = fork();
ÔÚ´Óϵͳµ÷Óà fork Öзµ»Øʱ£¬Á½¸ö½ø³Ì³ýÁË·µ»ØÖµ pid ²»Í¬Í⣬¾ßÓÐÍêÈ«Ò»ÑùµÄÓû§¼¶ÉÏÏÂÎ ......
linuxϵÄ×Ö·û¼¯×ª»»ÃüÁîÊÇiconv£¬ÎÒÃǶ¼ÖªµÀ´Óutf8±àÂëת»»³Égbk±àÂë¿ÉÒÔÕâô×ö£º
iconv -f utf8 -t gbk aaa.dat > bbb.dat
µ«ÊÇ£¬½ñÌìÓöµ½Ò»¸öÎÊÌâ·¢ÏÖ¶ÔÓÚͬÑùµÄÎļþ£¬²»Í¬µÄ»úÆ÷ÉÏÓеÄÄÜתÓеIJ»ÄÜת£¬ºÜÊÇÀ§»ó¡£×îºó·¢ÏÖ£¬ÔÀ´ÊDzÙ×÷ϵͳµÄÎÊÌ⣬һ̨ÊÇredhat£¬Ò»Ì¨ÊÇsolaris¡£ÔÚͬһ¸ö²Ù×÷ϵͳÉÏ´Ógbk--utf8--gb ......