preload preload preload preload

Activer jstatd dans votre JVM


Le vendredi 08 juillet 2011 par madpellzo JDK/JRE 49 commentaires

jstatd est un server RMI qui permet de monitorer votre JVM. La configuration décrite ci après vous explique comment configurer et lancer jstatd de façon a s'y connecter à distance avec un outil de monitoring comme VisualVM.

Supposons que votre JDK soit installée dans /usr/local/java

Nous allons commencer par créer un fichier policy qui va autoriser jstatd a accéder et exploiter les outils de la JVM :

# vi /usr/local/java/jstatd.all.policy

grant codebase "file:${java.home}/../lib/tools.jar" {

   permission java.security.AllPermission;

};

Ensuite on lance jstatd comme ceci:

# /usr/local/java/bin/jstatd -J-Djava.security.policy=/usr/local/java/jstatd.all.policy &

Le server jstatd est bindé sur le port 1099 par défaut. Rajouter l'option "-p" et le port TCP souhaité dans la logne de commande si vous voulez binder jstatd sur un autre port.

Voici un petit scritp de démarrage et d'arrêt de jstad:

#!/bin/sh


# jstatd startup script

start ()
{
        /usr/local/java/bin/jstatd -J-Djava.security.policy=/usr/local/java/jstatd.all.policy > /dev/null 2>&1 &
        ps -ef | grep /usr/local/java/bin/jstatd | grep -v grep | awk -F" " '{print $2}' > /var/run/jstatd.pid
}

stop ()
{
        kill -9 `cat /var/run/jstatd.pid`
        rm /var/run/jstatd.pid
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  *)
  echo "Usage: $0 {start|stop|restart}"
  exit 1
esac

Une fois le serveur jstard démarré, vous pouvez vous y connecter à distance en utilisant VisualVM livré avec votre JDK (<JDK PATH>/bin/visualvm.exe)

Associé à l'activation de JMX (cf article Activer JMX dans votre JVM) les données receuillies par VisualVM sont très intéressantes lors de benchmarking (utisation des différents compartiement de la mémoire de votre JVM, fréquence et durée de garbage collecting ...)

Mots clés : jstatd jdk

  • Commentaires

  • Avatar Gravatar
     Jean Philippe
     #1 Le 27 février 2012

    Merci pour le petit script ca m'a été bien utile

  • Avatar Gravatar
     Daftar Poker Online
     #2 Le 01 février 2017

    These are in fact wonderful ideas in regarding blogging.
    You have touched some good factors here. Any way keep up wrinting.

  • Avatar Gravatar
     sexual decoder system
     #3 Le 06 février 2017

    I think tthe admin of this ssite is genuinely working hard in support of his web site, because here every information iis quality based stuff.

  • Avatar Gravatar
     Cheap Jerseys free shipping
     #4 Le 06 février 2017

    wholesale nfl jerseys Cheap Jerseys free shipping bntihe73782

  • Avatar Gravatar
     Marble Countertop
     #5 Le 07 février 2017

    Granite TileMarble Countertop mublyg 63842

  • Avatar Gravatar
     Bus Jakarta
     #6 Le 09 février 2017

    mɑgnificent submіt, very іnformatіve. I wonder
    why the opposite specialists of this sector do not notice this.

    You should continuе your wгiting. I'm sure, you've ɑ hugе readers' base already!

  • Avatar Gravatar
     Brisbane Wedding Photography
     #7 Le 09 février 2017

    Great web site you have got here.. It's hard to find high-quality writing like yours these days.
    I really appreciate individuals like you! Take care!!

  • Avatar Gravatar
     judi online Terpercaya
     #8 Le 10 février 2017

    I like the helpful information you supply on your articles.
    I'll bookmark your blog and test once more here frequently.

    I am quite certain I will be informed a lot of new stuff proper
    here! Best of luck for the next!

  • Avatar Gravatar
     Win Exciting prizes
     #9 Le 10 février 2017

    Good day! This post could not be written any better!
    Reading through this post reminds me of my good old room mate!
    He always kept chatting about this. I will forward
    this article to him. Fairly certain he will have a good read.
    Many thanks for sharing!

  • Avatar Gravatar
     Win Exciting prizes
     #10 Le 10 février 2017

    Good day! This post could not be written any better!
    Reading through this post reminds me of my good old room mate!
    He always kept chatting about this. I will forward
    this article to him. Fairly certain he will have a good read.
    Many thanks for sharing!

  • Avatar Gravatar
     Test.Abgbrew.com
     #11 Le 10 février 2017

    Ꮋey I know this is off topiⅽ but I was wondering if you knew
    off any widgegѕ I cοuld add to my blog that automatically tweet
    my newest twitter updates. I've been looking fоr
    a plug-in like this f᧐r qսite some time and was hߋping maybe you would have some experience wioth somethіng like this.

    Please let me know if you rrun into anything. I truly enjоy reading your
    blog and I look forward to your new updates.

  • Avatar Gravatar
     Cerys
     #12 Le 11 février 2017

    I would like to thank you for the efforts youu have put in writing this
    website. I'm hoping the same high-grade site post from you in the upcoming as well.

    In fact your creative writing abilities has inspired me to geet
    my own website now. Actually the blogging is spreading its wings fast.
    Youur write up is a good example of it.

  • Avatar Gravatar
     Carolyn
     #13 Le 12 février 2017

    Awesome issues here. I'm very happy to see your post. Thanks
    a lot and I'm having a look ahead to touch you. Will you please drop me a e-mail?

  • Avatar Gravatar
     Myboatplans 518 Boat Plans
     #14 Le 12 février 2017

    Why people still use to read news papers when iin this technological world all iis existing
    oon web?

  • Avatar Gravatar
     my shed plans
     #15 Le 13 février 2017

    Hey there I am so glad I found your website, I really found you
    by accident, while I was searching on Digg for something else,
    Regardless I am here now and wouild just like to say cheers for a tremendous
    post and a all round entertaining blog (I also love tthe theme/design), I don’t have time to read
    through it all at the moment but I have saved it
    and also added in your RSS feeds, so when I have time
    I will be back to read a lott more, Please do keep up thee excellent work.

  • Avatar Gravatar
     Leandro
     #16 Le 14 février 2017

    bookmarked!!, I eally like your site!

  • Avatar Gravatar
     Joel
     #17 Le 15 février 2017

    Hi there to every body, it's my first go to see of thius webpage;
    this weblog includes remarkable and actually good information for readers.

  • Avatar Gravatar
     Buy Kanchipuram Silk United States - Sudarshansilk.com
     #18 Le 16 février 2017

    Very good info. Lucky me I found your website by accident (stumbleupon).

    I've saved as a favorite for later!

  • Avatar Gravatar
     cheap air max 90
     #19 Le 16 février 2017

    Everything published made a bunch of sense. However, what about this?
    what if you wrote a catchier title? I am not suggesting your information is not good, however suppose you added something
    to possibly grab folk's attention? I mean Activer jstatd dans
    votre JVM - Madpellzo is a little plain. You ought to peek at Yahoo's front page and see
    how they write article titles to grab people
    to click. You might add a related video or a related pic or two to
    grab people excited about what you've written. In my opinion, it might make your
    blog a little bit more interesting.

  • Avatar Gravatar
     best free web hosting
     #20 Le 16 février 2017

    I visited multiple sites except the audio feature forr audio
    songgs existing at this site is really marvelous.

  • Avatar Gravatar
     wiki.cizaro.com
     #21 Le 17 février 2017

    Very fantastic info can be found on blog.

  • Avatar Gravatar
     100% Silk Sarees New york - Sudarshansilk.com
     #22 Le 17 février 2017

    You should be a part of a contest for one of the highest quality websites on the net.
    I'm going to highly recommend this blog!

  • Avatar Gravatar
     page=0&top=1&
     #23 Le 17 février 2017

    Fantastic beat ! I would like to apprentice while you amend your site,
    how can i subscribe for a blog website? The account helped me a acceptable deal.

    I had been a little bit acquainted of this your broadcast offered bright clear idea

  • Avatar Gravatar
     binary options pro signals team
     #24 Le 18 février 2017

    Every weekend i used to pay a visit this site, as
    i want enjoyment, as thbis this website contions actually
    pleasant funny stuff too.

  • Avatar Gravatar
     learn piano in 30 days download
     #25 Le 18 février 2017

    A fascinating discussion is worth comment.
    I do beoieve that you should publish more about this subject,
    it migjt not be a taboo matter but generally folks don't discuss such subjects.
    To the next! Best wishes!!

  • Avatar Gravatar
     forex diamond ea forex peace army
     #26 Le 18 février 2017

    hello!,I really like your writing so so much! shqre we keep inn touch extra approximately your article on AOL?
    I require an expert on this area to resolve my problem.
    Maybe that's you! Taking a look aheawd too peer you.

  • Avatar Gravatar
     sex toys
     #27 Le 18 février 2017

    DEP suspended construction on the pipeline January 3and directed the company to explain how it planned to prevent drilling mud spills known as
    "inadvertent returns" that have affected the project since construction began a year ago.

    sex Toys for couples 87276

  • Avatar Gravatar
     www.uyanbian.net
     #28 Le 19 février 2017

    With havin so much written content do you ever run into any problems
    of plagoorism or copyright violation? My sitfe has a lot of unique content I've either created myself oor
    outsourced but it seems a lot of it is popping it up all over the internet without my agreement.
    Do you know any ways to help reduce content from being ripped
    off? I'd really appreciate it.

  • Avatar Gravatar
     renaissance costume
     #29 Le 19 février 2017

    After I originally commented I appear to have clicked the -Notify
    me when new comments are added- checkbox and from now on every time
    a comment is added I receive four emails with the same comment.
    Perhaps there is a means you are able to remove me from that service?
    Thanks a lot!

  • Avatar Gravatar
     Rosella
     #30 Le 19 février 2017

    I’m noot that much off a internet reader to be honest but your sites really nice, keep it up!

    I'll go ahead and bookmark your website to come back down the road.
    Cheers

  • Avatar Gravatar
     Clitoral Vibrators
     #31 Le 20 février 2017

    Inside the box there was the doll, a patch kit,
    and an instructional pamphlet. The doll was folded up
    inside a sealed plastic bag. The patch kit contains 2 patches, and a tube of 'magical doll fixing goop'.


    male sex toys 22711

  • Avatar Gravatar
     Jeanett
     #32 Le 20 février 2017

    Yeaah bookmaking this wasn't a risky determination great post!

  • Avatar Gravatar
     http://numama.ru/
     #33 Le 20 février 2017

    Excellent way of describing, and pleasant paragraph to obtain facts about my presentation focus, which i am going to deliver in college.

  • Avatar Gravatar
     trinkets jewelry
     #34 Le 21 février 2017

    So why does this bother me Imagine you just bought a lovely home in a nice neighborhood, and some yahoo decides to build
    a cardboard shanty next to you. It would be
    very difficult to sell your house for what it should be worth.


    fashion jewelry cheap jewelry vxleht14478

  • Avatar Gravatar
     scientific-programs.org
     #35 Le 22 février 2017

    Rattling excellent info can be found on weblog.

  • Avatar Gravatar
     vigorelle erfahrung
     #36 Le 23 février 2017

    I all the time used to study post in news papers but now as I am a user of web thus from now I am using net for articles
    or reviews, thanks to web.

  • Avatar Gravatar
     Dedra
     #37 Le 23 février 2017

    We're a bunch of volunteers and starting a new scheme in our community.
    Your website provided us with useful info to paintings
    on. You have done an impressive task and our entire neighborhood will probably bee gfateful to you.

  • Avatar Gravatar
     modeltrainstuff.com offer code
     #38 Le 23 février 2017

    Awesome article.

  • Avatar Gravatar
     page=0&top=1&
     #39 Le 25 février 2017

    Hey are using Wordpress for your site platform? I'm new to
    the blog world but I'm trying to get started and set up my own. Do
    you need any html coding knowledge to make your own blog?
    Any help would be greatly appreciated!

  • Avatar Gravatar
     Boys Kids Wear Canada - Sudarshansilk.com
     #40 Le 25 février 2017

    Hi there, just became aware of your blog through Google, and
    found that it is really informative. I'm gonna watch out for brussels.
    I will appreciate if you continue this in future.
    Many people will be benefited from your writing. Cheers!

  • Avatar Gravatar
     cheap dildos
     #41 Le 26 février 2017

    Many people prefer to buy their sex toys online.
    They may be too shy to walk into a sex toys store. They feel better having the anonymity of buying from an online store.
    "Mrs.
    cheap dildos sex Toys for couples mbteqk35241

  • Avatar Gravatar
     costume jewelry
     #42 Le 26 février 2017

    A "significant amount" of jewelry was stolen from the Costco store on North Division Street sometime during the
    night Tuesday, Spokane police confirmed Thursday.

    Wednesday, police spokeswoman Monique Cotton said.
    wholesale jewelry fake jewelry nnraot50553

  • Avatar Gravatar
     car is second hand
     #43 Le 26 février 2017

    Hello, this weekend is good for me, as this time i am reading this great informative
    piece of writing here at my home.

  • Avatar Gravatar
     your factory radio
     #44 Le 26 février 2017

    I have read so many articles or reviews concerning the blogger lovers
    except this paragraph is actually a pleasant article, keep it up.

  • Avatar Gravatar
     cheap dildos
     #45 Le 26 février 2017

    Thinking can hurt your chances, and I intend to last.
    I know why there is no glass, in front of the watercolor picture
    of blue irises, and why the window opens only partly and why the glass in it is shatterproof.

    cheap vibrators cheap vibrators orfgpe54946

  • Avatar Gravatar
     fake jewelry
     #46 Le 27 février 2017

    That so many Vietnamese businesses have been pushed out of the downtown, however, both want to see Little
    Saigon on Story Road. But others emigres, such as San Jose State Asian studies professor Hien Duc Do, think that the area lacks soul.

    cheap jewelry fake jewelry lhgycd83412

  • Avatar Gravatar
     dildos
     #47 Le 27 février 2017

    No, you should consider this a compromised pack, and use a
    second form of protection [condom] until you start your new one (which you should be
    doing anyways, to protect against STIs). Keep taking the rest of the
    pills regularly regardless.
    dildos sex Toys for couples otihrc24341

  • Avatar Gravatar
     vibrators
     #48 Le 27 février 2017

    Mr. Sessions has also said the United States weakened itself
    by banning techniques such as waterboarding, which he said
    were legal and effective.
    sex Toys for couples anal sex toys qfjcme29981

  • Avatar Gravatar
     Instant loan online
     #49 Le 27 février 2017

    To follow up on the up-date of this issue on your web site
    and would like to let you know how much I prized the time you took to generate this useful post.

    Within the post, you spoke regarding how to really handle this thing
    with all ease. It would be my pleasure to get some more concepts from your web site and come up to offer
    other individuals what I learned from you. Thanks for your usual
    fantastic effort.

  • Ecrire un commentaire








    Quelle est la troisième lettre du mot yqjvb ?