2013年4月23日火曜日

Strange things about LoadRunner 11.03

Recently I received a PC installed LoadRunner 11.03(perhaps patch 3) from my client and watched a web performance with it by long-run test.
In multiple user test, it seems not to work on proper performance because my web's performance monitor couldn't reach any limitation, usage of CPU, network bands, disk usage per minute, usage of Memory. Only waiting threads was little bad, but it was not obvious.
It seems a sequential behavior rather than a same time access.
(No error occured.)

So I though it was not problem of servers, but the client have some problem having prevent to be acting parallel access for some reasons.

I don't have proper HP passport ID, I can't access the LoadRunner patches' website.

Please notice me if not LoadRunner patches, especially patch 4 or higher , show the above behavior or not.


2012年6月6日水曜日

How to get command line of process on C#.

I found how to get the command line of a process on C#.

This source would wait until inputting process(command line args) had stopped.

This source need adding System.Manegement.dll.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
namespace WaitATask
{
    class Program
    {
        static void Main(string[] args)
        {
            string name = args[0];
            //System.Diagnostics.Process ps = System.Diagnostics.Process.Start(@"c:\TestZZ.bat");
            //System.Threading.Thread.Sleep(3000);
            foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcessesByName("cmd"))
            {
                using (ManagementObjectSearcher mos = new ManagementObjectSearcher(
                    string.Format("SELECT CommandLine FROM Win32_Process WHERE ProcessId = {0}",p.Id)))
                {
                    foreach (ManagementObject mo in mos.Get())
                    {
                        string cmdLine=mo["CommandLine"].ToString();
                        if (cmdLine.ToUpper().Contains(name.ToUpper() )){
                            p.WaitForExit();
                        }
                    }
                }
            }
        }
    }
}

2012年5月18日金曜日

I've just started my blog.

I've just started my blog.

I don't know how to deal the blog well.
It's time to attempt that.