java profiling question

  • Follow


Hi

I run my java program as
java MyApp
Then, I run ./jps
The id is 12905.
Then, I run ./jconsole 12905
I got "12905 is not a managed VM"
How can I run my java application as a managed VM?

Thanks


0
Reply a 1/18/2008 7:09:28 AM

On 18 Jan, 07:09, "a" <a...@mail.com> wrote:
> I run my java program as
> java MyApp
> Then, I run ./jps
> The id is 12905.
> Then, I run ./jconsole 12905
> I got "12905 is not a managed VM"
> How can I run my java application as a managed VM?

Here's what I do:

I add this to the invocation of the JVM:

-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.port=A_PORT_NUMBER_I_CHOOSE

I run the app as normal and run jconsole like this:

jconsole IP_ADDRESS:A_PORT_NUMBER_I_CHOOSE

HTH,

Andrew Marlow
0
Reply apm35 1/21/2008 8:29:27 AM


On Fri, 18 Jan 2008 07:09:28 GMT, "a" <a@mail.com> wrote, quoted or
indirectly quoted someone who said :

>Hi
>
>I run my java program as
>java MyApp
>Then, I run ./jps
>The id is 12905.
>Then, I run ./jconsole 12905
>I got "12905 is not a managed VM"
>How can I run my java application as a managed VM?
>
>Thanks
>
see http://mindprod.com/jgloss/jconsole.html
-- 
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com
0
Reply Roedy 1/24/2008 12:40:00 AM

which we have no certainty of reaching.

Let each one examine his thoughts, and he will find them all occupied with
the past and the future. We scarcely ever think of the present; and if we
think of it, it is only to take light from it to arrange the future. The
present is never our end. The past and the present are our means; the future
alone is our end. So we never live, but we hope to live; and, as we are
always preparing to be happy, it is inevitable we should never be so.

173. They say that eclipses foretoken misfortune, because misfortunes are
common, so that, as evil happens so often, they often foretell it; whereas
if they said that they predict good fortune, they would often be wrong. They
attribute good fortune only to rare conjunctions of the heavens; so they
seldom fail in prediction.

174. Misery.--Solomon and Job have best known and best spoken of the misery
of man; the former the most fortunate, and the latter the most unfortunate
of men; the former knowing the vanity of pleasures from experience, the
latter the reality of evils.

175. We know ourselves so little that many think they are about to die when
they are well, and many think they are well when they are near death,
unconscious of approaching fever, or of the abscess ready to form itself.

176. Cromwell was about to ravage all Christendom; the royal family was
undone, and his own for ever established, save for a little grain of sand
which formed in his ureter. Rome herself was trembling under him; but this
small piece of gravel having formed there, he is dead, his family cast down,
all is peaceful, and the king is restored.

177. Three hosts. Would he who had possessed the friendship of the King of
England, the King of Poland, and the Queen of Sweden, have believed he would
lack a refuge and shelter in the world?

178. Macrobius: on the


0
Reply Roedy 1/24/2008 6:42:13 PM

3 Replies
285 Views

(page loaded in 0.064 seconds)

Similiar Articles:













7/29/2012 12:16:50 AM


Reply: