How do i monitor performance in the system of a Java program in Windows XP?

I want to record the CPU usage and Memory usage on an hourly basis programatically, for an already running java class in Windows XP environment for the purpose of testing the Java class. The recording has to be done independent of the java class.By Cpu usage and Memory usage , i need to know how much of the computer's memory and CPU has been used by the java class.
I tried the HPROF tool available with J2SE 5.0, but it gives the details of each of the functions' usage in the program's allocated space in memory. moreover, it is not independent of the execution of the class.
The other option is to make use of the Performance tool available in Windows Xp->Administrative tools. This is a complex procedure, and i am not sure of how to proceed in this direction.

You can use the windows performance monitor (perfmon.exe / perfmon.msc). I don't know wther it is also included in the XP Home Edition. But this is the tool you are looking for. It can display the information in realtime but also can write to a protocoll.
Here's a shor description of what to do (i have a german windows so i'm more or less guessing the english terms)
- Start perfmon.msc
- In the tree on the you can see "systemonitor" (the realtime display) and "performance protocolls and warnings"
- open "performance protocalls and warnings", the first sub element should be something like"performance protocalls" or "performance indicator"
- open the context menu for it and create a new protocoll settings.
- add the information to it you are interested in and make other changes if you want
- start the new configuration
once you have the information you can display it it in the systemmonitor by selecting "display information from protocal" from the toolbar
It will take some time till you know what you are doing (and most of the information the performance monitor is useless to 99% of the people). But its a quite usfull tool once you know how to use it

Similar Messages

  • How to read system eventlog using java program in windows?

    How to read system eventlog using java program in windows?
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Hi,
    There is no java class for reading event log in windows, so we can do one thing we can use windows system 32 VBS script to read the system log .
    The output of this command can be read using java program....
    we can use java exec for executing this system32 vbs script.
    use the below program and pass the command "eventquery"
    plz refer cscript,wscript
    import java.io.*;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec("Command");
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    This sample program will list all the system log information....
    Zoe

  • How to read system evenlog using java program in windows

    How to read system evenlog using java program in windows???
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Welcome to the Sun forums.
    >
    How to read system evenlog using java program in windows???>
    JNI. (No.)
    >
    is there any java class available to do this ? or any one having sample code for this?>You will generally get better help around here if you read the documentation, try some sample code and come back with a specific question (hopefully with an SSCCE included).
    >
    Your friend Zoe>(raised eyebrow) Thank you for sharing that with us.
    Note also that one '?' denotes a question, while 2 or more generally denotes a dweeb.

  • How to get how many transcations were performed in the system

    Hi All,
    Could any one tell me, is there a way we can get from the system how many transactions (hiring, leave of absence, terminations, salary changes, etc) were performed.
    Regards
    Siri

    Hi!
    SE16 through table can be view
    PA0000> Execute .
    Regards
    Sheetal

  • Set system classpath using java program??

    Hi,
    I want to set the System classpath using java program. Can somebody please tell how to do this.
    Prashant

    but this will set the classpath for that particular JVM only.
    Isn't it??? I want that of SYSTEM so that user can access that class path from any JVM instance.
    Prashant

  • How many people can be on the system with a 512 K connection in BPC 7 MS

    Hi,
    It appears that BPC uses a large piece of the band width and more than one computer and user with a 512 K connection using BPC will not work.How many people can be on the system with a 512 K connection? -BPC 7 ms version.
    Thx
    PLN

    I would like to precise more things regarding the network.
    I did a case study for one customer and really to have good performances with SAP BPC client the network required the follow:
    Bandwitdth 1024kb/s
    Latency smaller than 200 ms between BPC client and BPC server
    Otherwise the users will experience problems:
    1. IBandwitdh < 1024Kb/s then to download 80 MB or more (templates + dimensions) will require a lot of time and that's means the login time will be very slow every time when a dimension is changed or security is process
    2. When an report is executed (a medium report not very complex report) around 100 mesage are send between bpc client and server. So if latency > 200 ms than a simple calculation is saying just into network it will be lost 200 * 100 ms = 20 s.
    So for a report which normally is taking 5 - 10 second it will take 30s or even more into client with latency bigger than 200 ms.
    Regards
    Sorin Radulescu

  • Monitoring responses from the System

    we have created a new system and want to monitor responses from the system.
    Is there any way to set up a rule when the notfication is going to be sent?
    TIA

    What is meant by USM? How we can use it EM grid control Rel3

  • TS4009 how do you retrieve information after the system has been reset to default

    how do you retrieve information after the system has been reset to default?

    From a backup on itunes or icloud, assuming you have made backups.  Connect to itunes and in the first tab for your device, choose to perform a restore.

  • How to delete a company in the system?

    Hi all,
            i am create three companies in the same B1 system. Now i just want to know how to delete one company from the system?
    thanks,
    Suresh Yerra.

    Hi Rajesh,
                  It's very simple.
    1. login to SQL Server
    2. In the databases u can find the three companies
    3. delete the particular company database from the SQL databases.
    Let me know if u have any queries regarding this?
    Thanks,
    Suresh Yerra.

  • How to conf  in Hyperion, so the system couldn't login with the same user

    Hai.....
    how to configure in Hyperion, so the system couldn't login with the same user id in different machine ? (could you please provide me with detail step by step ? )
    rgds
    uka fp

    fane_j wrote:
    Sally R. wrote:
    Someone gave me a suggestion to go to the terminal and type in the following:
    ls /Users/Shared/.*.so
    This was published on MacWorld's site, and it's not a very good tip. Try this instead
    ls -la /Users/Shared/*.so
    Turns out I was wrong about that. Somebody else suggested something even more complicated and got this reply:
    By bastion
    Fri Feb 24 08:49:05 PST 2012
    PeterSParker said
    Your terminal statement has an extra "." in it that prevents it from working.
    Also, you should add the options -alR to show what is happening, and to search subdirectories.
    The revised command looks like this:
    ls -alR /Users/Shared/*.so
    The above is completely wrong. The command as shown in the article is appropriate.
    The "." is not extra and doesn't prevent the command from working. It's specifying that you're listing files that start with a period and end with ".so" with anything in between being matched.
    Because you're explicitly searching for things that start with "." you don't need the -a flag.
    Because you only care about simple existence and not any metadata you don't need -l.
    Because the files of interest are installed in /Users/Shared directly, and not subfolders thereof, you don't need -R.

  • TCP Provider: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

    Hi All,
    We have snapshot replication . Job is failing in between due to below error.
    Error messages:
    The process could not connect to Subscriber 'XX:SD'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20084)
    Get help: http://help/MSSQL_REPL20084
    TCP Provider: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. (Source: MSSQLServer, Error number: 10055)
    Get help: http://help/10055
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online. (Source: MSSQLServer, Error number: 10055)
    Get help: http://help/10055
    Login timeout expired (Source: MSSQLServer, Error number: HYT00)
    Get help: http://help/HYT00
    Please suggest

    Hi Khushi,
    According to your description, your snapshot replication job fails and you come across the error related to TCP Provider. Based on my research, the issue could occur as the following two situations.
    1. OS runs out of memory for TCP buffers. When people use the two switch: the /PAE switch in the c:\boot.ini file and the /3gb switch in the boot.ini file. If the applications require many OS resources, such as by opening many TCP connections, this can cause
    the OS to run out of memory for resources like TCP buffers.
    2.OS runs out of available TCP “ephemeral” ports. When the client machine is opening many TCP connections and is running Windows Server 2003, Windows XP, or any earlier version of Windows, it may run out of TCP “ephemeral” ports.
    To work around the issue, please follow the two solutions as below.
    1.Remove the /3gb switch from c:\boot.ini. The root problem in this case is memory pressure on the OS, so removing the /3gb switch will give more memory to the OS and will alleviate this problem.
    2.Make more ephemeral ports available following the steps in the article:
    http://support.microsoft.com/kb/196271
    For more information about the process, please refer to the article:
    http://blogs.msdn.com/b/sql_protocols/archive/2009/03/09/understanding-the-error-an-operation-on-a-socket-could-not-be-performed-because-the-system-lacked-sufficient-buffer-space-or-because-a-queue-was-full.aspx
    Regards,
    Michelle Li

  • How to install ftp service on the system?

    OS: SuSE Linux Enterprise Server 8
    How to install ftp service on the system?
    How to check and modify to use it?
    I am not able to use FTP.
    Regards,
    D

    Rohit,
    If its about installation/Deployment of Agent- then its through SDM,
    'configuration' can be manual or Atuomatic:
    Manual-> refer the installation Guide which digesh has mentioned -(from page 20).
    Automatic- Its through Diagnostics Setup through Solman -(Its bit easy).
    Thanks,
    Jagan

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • We need how to copy macro logic in the system

    Hi Experts,
    we need how to copy macro logic in the system, we have some macros in my friend system,  i need how to copy macro logic , can u send me elaborate.
    Regards,
    BABU

    I'm a bit uncomfortable with you've wanted to do especially you and your friend has a different system (unless its a sister company/industry). If this would be the case you can copy your friend's macro with the help of your basis team to transport them in one system to another.
    if the case is different organization, I'm not sure if that is possible since no industry have same requirements but i may suggest the links below for your reference on how to copy the Macro into external system. Hope the document is relevant to your issue.
    [http://help.sap.com/saphelp_scm41/helpdata/en/82/2101fac5288f4d8c7be7c20e604a8f/frameset.htm]
    Cheers!

  • How we can update the  System Date,in java

    Hi guys,
    can U pls help me...
    How we can update the System Date,in java
    I need to get the System Date and time continuosly thruogh threads concept.kindly help me
    Thanking u in Advance

    System.currentTimeMillis() will give you the current
    system date and time as a long value.
    ~I think the OP wants to change the system time not just get the system time.

Maybe you are looking for

  • TS1253 i have airport extreme, and printer works with my imac, but not with my mac book pro??

    i tried setting up the printer under my wireless network only, and using the printer information, tried both and nothing works, my imac's same settings for the printer, and just cant get it to work. i am ussing airport extreme, and it shows printer c

  • Parent Child Hierarchy  (N Level Hierarchy ) in BI 4.0

    Hi , We have following table structure . We are trying to create parent-child hierarchy and  implement drill on the same . We are using Oracle  database as RDBMS. e.g. Child Key    Parent Key 1    2                 1 3                 1 4            

  • XML parser Exception

              Hi           I try to deploy a servlet that serve as a MapPoint web services client. So the           servlet receive a post with latitude and longitude then it try it to retrieve           a Map showing the location from MapPoint through w

  • How to run a BAPI in background mode?

    Dear friends, I have a requirement [In the UI user can choose two options - run online or run backgroud] to run a BAPI (BAPI_SALESORDER_CHANGE) in background mode (background job)  , does anybody know how to implement it? Thanks a lot!!

  • Crashed and lost my bookmarks

    Is there a way to get my bookmarks back after a crash wiped them out? (I shut down without closing Virtual PC, my computer got really mad...took me most of the morning to reconfigure everything, grrr)