JDK-8031094 : UsageTracker loses quotes on command-line VM arguments.
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2013-12-30
  • Updated: 2014-03-24
  • Resolved: 2014-03-24
Related Reports
Duplicate :  
Description
The JVM arguments logged by UsageTracker lose their quotes which were present on the command-line.  While it is usually clear, it can be confusing, e.g.:

java -Dsomeprop="sometext -Xmx999m" -Xmx32m -cp ~/testprogs Threads

Creates an entry where it's not obvious where the property setting ends an further arguments begin:

VM start##Mon Dec 30 11:05:29 GMT 2013##hostname##Threads##/opt/java/jdk1.7.0.fcs/jre##1.7.0##23.0-b10-internal-jvmg##Oracle Corporation##Oracle Corporation##Linux##i386##3.8.0-33-generic##-Dsomeprop=sometext -Xmx999m -Xmx32m ##/home/kwalls/testprogs##

Comments
8030103 will add more quoting and fix this issue. About to push that change, closing this as a duplicate.
24-03-2014