mss / jvmtop

Automatically exported from code.google.com/p/jvmtop
0 stars 0 forks source link

output scrolls up every 1s instead of stayin in fixed location. #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  ./jvmtop.sh
2.
3.

What is the expected output? What do you see instead?
attached jvmtopout.jpg

What version of jvmtop are you using? On what operating system?

jvmtop-0.7.0

Please post the output of the following commands:
java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

echo $JAVA_HOME  (for unix/linux systems)
echo %JAVA_HOME% (for windows)

Please provide any additional information below.

Kindly fix the scrolling mode. it would be nice to have it like linux TOP does. 
 and is it possible to display the output only once ? by which i am planning to 
develop a nagios script plugin which will get output from this and generate 
graphs. 

Awaiting your reply. 
Great work. thanks.

Original issue reported on code.google.com by j...@sodexis.com on 30 Jul 2013 at 5:38

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your report.
jvmtop is related to output "top-like", the scrolling mode is not intended and 
only happens in some environments.
This issue is mostly related to issue #21, originally reported in a FreeBSD 
terminal.

Can you please execute the following commands in your terminal and post their 
results here:

echo $TERM
tput reset | hexdump -C

Can you also tell me if the following command will clear the screen in your 
terminal:

echo -e \\x1b\\x5b\\x32\\x4a\\x1b\\x5b\\x48

Original comment by patric.r...@gmail.com on 30 Jul 2013 at 8:07

GoogleCodeExporter commented 9 years ago
Thanks for your quick reply.

here are the result u needed.

echo $TERM
xterm

tput reset | hexdump -C

00000000  1b 63 1b 5b 21 70 1b 5b  3f 33 3b 34 6c 1b 5b 34  |.c.[!p.[?3;4l.[4|
00000010  6c 1b 3e                                          |l.>|
00000013

echo -e \\x1b\\x5b\\x32\\x4a\\x1b\\x5b\\x48    clears my screen in terminal.

My OS is centos 5.9 64bit. 

Original comment by j...@sodexis.com on 30 Jul 2013 at 8:15

GoogleCodeExporter commented 9 years ago
Thanks again for the quick retest. I'll need to make some further tests with 
other OS/terminal environments but I think I can release a fix for this soon.

Original comment by patric.r...@gmail.com on 30 Jul 2013 at 1:06

GoogleCodeExporter commented 9 years ago
Happy to hear this from you.  Thanks once again for your great work.

One more thing. Is it possible to make the output display only once.

when i excute ./jvmtop.sh

JvmTop 0.7.0 alpha - 09:10:52,  amd64,  4 cpus, Linux 2.6.18-19, load avg 0.01
 http://code.google.com/p/jvmtop

  PID MAIN-CLASS      HPCUR HPMAX NHCUR NHMAX    CPU     GC    VM USERNAME   #T DL
16786 m.jvmtop.JvmTop    7m 1820m    9m  130m 29.41%  0.00% S6U25 compiere   12

and then exit out.  This is because to cut the values and store in variables to 
get used as performance graph in nagios. 

I am not so strong in java to decompile your .jar file and look into it. :-)

Original comment by j...@sodexis.com on 30 Jul 2013 at 1:13

GoogleCodeExporter commented 9 years ago
Good idea - I think this should be possible quite easily
I added this to my todo-list.

BTW: If you are successful integrating jvmtop into nagios monitoring, it would 
be cool if you would share your work to the community.
Either here on this site (for this, just write me an email), on the nagios site 
- or both.
I'm sure this would be interesting for other nagios/jvmtop users as well.

Original comment by patric.r...@gmail.com on 30 Jul 2013 at 2:29

GoogleCodeExporter commented 9 years ago
i trying my level best. but to start with.. i need the jvmtop.sh output to 
display only once. now it scrolls up. and i can't perform cut command on that.

Indeed, it will be one of the interesting plugin that community and get benefit.

Thanks.

Original comment by j...@sodexis.com on 30 Jul 2013 at 3:13

GoogleCodeExporter commented 9 years ago
Would you please try the 0.7.1 version:

http://jvmtop.googlecode.com/files/jvmtop-0.7.1.tar.gz

Please let me know if this fixes the scrolling issue.
I also added the "once"-mode: just use the --once argument:
e.g.: ./jvmtop.sh --once

Original comment by patric.r...@gmail.com on 30 Jul 2013 at 3:21

GoogleCodeExporter commented 9 years ago
Great. Thank you.
ver 0.7.1 works on my centos 5.9 64bit. and scrolling issue solved.

Thank you again for adding --once argument.

You have given me task to work now. I work on nagios plugin in my free time and 
update u.

Thanks. have a great day.

Original comment by j...@sodexis.com on 30 Jul 2013 at 3:27

GoogleCodeExporter commented 9 years ago
You're welcome.
Let us know if you made progress with your nagios progress.

Original comment by patric.r...@gmail.com on 30 Jul 2013 at 4:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

It seems the scrolling problem still there.  Now i closely noticed that the 
screen does clears. but the previous history were kept in terminal and can be 
viewed by scrolling up.

I have recorded a video of mine. 16 MB. thus giving out  URL. please have a 
look into it.
looking after a fix would be great.

http://www34.zippyshare.com/v/24978182/file.html

Thanks.  (Though i m working on nagios plugin with --once argument) 

Original comment by j...@sodexis.com on 1 Aug 2013 at 1:20