ranjith520 / remote-linux-monitor

Automatically exported from code.google.com/p/remote-linux-monitor
0 stars 0 forks source link

Unparseable date / no Resources Graph #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install
2. configure
3. run

What is the expected output?

> no error is expected in the java windows
> Graphics ressources displayed

What do you see instead?
> In the java console 1 per second :       
at java.text.DateFormat.parse(Unknown Source)
...
java.text.ParseException: Unparseable date: "02-28-13 03:27:19 "

>the correct time was :Thu, 28 Feb 2013 15:35:01

> Linux box is configured with French units
> LANG=fr_FR.UTF-8

What version of the product are you using? 
>ver 1.02

On what operating system?
Windows XP / JRE 7

Please provide any additional information below.

Full error message
        at java.text.DateFormat.parse(Unknown Source)
        at db.remoteLinuxMonitor.ResourceInfo.getCPUYPoint(ResourceInfo.java:180)
        at db.remoteLinuxMonitor.ResourceInfo.addYPoint(ResourceInfo.java:101)
        at db.remoteLinuxMonitor.ResourceInfo.addPlotPoints(ResourceInfo.java:72)
        at db.remoteLinuxMonitor.RemoteMain$2.actionPerformed(RemoteMain.java:706)
        at javax.swing.Timer.fireActionPerformed(Unknown Source)
        at javax.swing.Timer$DoPostEvent.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
java.text.ParseException: Unparseable date: "02-28-13 03:27:19 "

Original issue reported on code.google.com by tbox1...@gmail.com on 28 Feb 2013 at 2:41

GoogleCodeExporter commented 9 years ago
If you run

date +"date %m-%d-%y %r"; grep cpu /proc/stat; grep 
"MemTotal\|MemFree\|Buffers\|Cached\|SwapTotal\|SwapFree" /proc/meminfo; grep 
":" /proc/net/dev  | sed  's/^/Interface /;s/:/ /'

from the Linux command line what does your output look like?

Original comment by dbothwell.home@gmail.com on 28 Feb 2013 at 4:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You should get something that looks like this.

date 02-28-13 11:35:19 AM
cpu  12184543 1969767 4373055 389305681 3039389 9 41423 0 0 0
cpu0 6012335 995950 2199406 193460540 2677050 9 39383 0 0 0
cpu1 6172207 973816 2173648 195845140 362339 0 2040 0 0 0
MemTotal:        4126628 kB
MemFree:          857464 kB
Buffers:          427668 kB
Cached:          1008748 kB
SwapCached:        34664 kB
SwapTotal:       3028216 kB
SwapFree:        2812492 kB
Interface     lo  443851830 3582395    0    0    0     0          0         0 
443851830 3582395    0    0    0     0       0          0
Interface   eth0  1793644404 2985383    0    0    0     0          0     30352 
862910383 2814282    0    0    0     0       0          0

Original comment by dbothwell.home@gmail.com on 28 Feb 2013 at 6:33

GoogleCodeExporter commented 9 years ago
Hi,

here is what I got :

         date +"date %m-%d-%y %r"; grep cpu /proc/stat; grep "MemTotal\|MemFree\|Buffers\|Cached\|SwapTotal\|SwapFree" /proc/meminfo; grep ":" /proc/net/dev  | sed  's/^/Interface /;s/:/ /'
        date 02-28-13 06:18:50
        cpu  15349647 121547 5047429 315512978 13722471 138 150026 0 0 0
        cpu0 7651906 61333 2503261 157715693 6937108 65 82347 0 0 0
        cpu1 7697741 60214 2544167 157797284 6785362 73 67679 0 0 0
        MemTotal:        3094436 kB
        MemFree:           96224 kB
        Buffers:           33872 kB
        Cached:          2350692 kB
        SwapCached:        23544 kB
        SwapTotal:       2056284 kB
        SwapFree:         824148 kB
        Interface  wlan0        0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
        Interface     lo  2361619   16472    0    0    0     0          0         0  2361619   16472    0    0    0     0       0          0
        Interface   eth0  15615616129 45954927    0  109    0     0          0    107706 13593327427 21830392    0    0    0     0       0          0
        Interface   eth1        0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

 Hope it helps

Original comment by tbox1...@gmail.com on 28 Feb 2013 at 7:39

GoogleCodeExporter commented 9 years ago
See if the attached executable jar runs in your environment.  If so I will post 
it in downloads.

Thanks
Dave

Original comment by dbothwell.home@gmail.com on 28 Feb 2013 at 11:02

Attachments:

GoogleCodeExporter commented 9 years ago
hehe, you made it!

no more error message in console, and resources monitoring work fine !

Thanks a lot

Original comment by tbox1...@gmail.com on 1 Mar 2013 at 8:40

GoogleCodeExporter commented 9 years ago
I added the new executable jar to downloads.

Original comment by dbothwell.home@gmail.com on 1 Mar 2013 at 7:52