Prezado Grupo,

Gostaria de saber se algu�m do grupo sabe se o Java
t�m alguma API que consigua ler a quantidade de
mem�ria RAM que est� sendo usada e a quantidade de
mem�ria livre e tamb�m se o processador est� em uso, e
se estiver quanto est� sendo ocupado e quanto tempo
ele fica ocioso, eu consigo fazer toodos esses
procediemntos em C++ mais em Java eu n�o encontrei
nada parecido.Se algu�m souber algo porfavor me avise
que ser� de muito bom uso em uma aplica��o que preciso
desenvolver.

 --- [EMAIL PROTECTED] escreveu: 

---------------------------------
bom dia...

eu j� havia olhado este link... obrigado!
Mas n�o funciona...
Abaixo a classe que estou usando para testar.
Para executar: java -Ddebug=true Test

public class Test{


      public static void mycode()
      {
                  int a, b, c;
                  a = 10;
                  b = 20;
                  c = a + b;

      }

      public static void main(String[] args) {

        boolean debugmode=false;

        String dprop=System.getProperty("debug");

        if ((dprop !=null) && (dprop.equals("yes"))){
            debugmode=true;
        }

        if (debugmode) {
         System.err.println("debug mode!");
        }

      Runtime.getRuntime().traceInstructions(true);
      mycode();
      Runtime.getRuntime().traceInstructions(false);

       System.out.print("end");
 }

}

Quoting Marcelo Leite <[EMAIL PROTECTED]>:

>
> Bom dia Eduardo...
> Segue abaixo um link da Sun que pode te ajudar com
este assunto:
>
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/collect.html#debug
>
> ________________________________
> []'s
> Marcelo Leite
>
>
> >From: [EMAIL PROTECTED]
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: [JUG-Petro] java -debug e
traceInstructions
> >Date: Wed, 27 Oct 2004 22:29:47 -0200
> >
> >Oi pessoal,
> >
> >alguem sabe como usar a op��o -debug da m�quina
Java?
> >
> >Estou querendo colher informa��es din�micas durante
a execu��o de
> >aplica��es
> >atrav�s do uso do m�todo
Runtime.getRuntime().traceInstructions(true), mas
> >n�o
> >acontece nada...
> >
> >Eu estou usando j2sdk1.4.2
> >
> >Obrigado,
> >Eduardo.
> >
> >
> >
> >
>
>----------------------------------------------------------------
> >This message was sent using IMP, the Internet
Messaging Program.
>
>
_________________________________________________________________
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>




----------------------------------------------------------------
This message was sent using IMP, the Internet
Messaging Program.

Yahoo! Groups Sponsor  
Get unlimited calls to
        
U.S./Canada
  

---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/jug-petropolis/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
 


        
        
                
_______________________________________________________ 
Yahoo! Acesso Gr�tis - Internet r�pida e gr�tis. Instale o discador agora! 
http://br.acesso.yahoo.com/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jug-petropolis/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Atrašyti