[
https://issues.apache.org/jira/browse/KARAF-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722576#comment-13722576
]
Uwe Barthel edited comment on KARAF-2415 at 7/29/13 9:55 PM:
-------------------------------------------------------------
The attached patch creates a file named 'environment.txt' with the content like:
{code:title=environment.txt}
Dump timestamp : Monday, July 29, 2013 11:39:32 PM CEST
Karaf : root 2.2.11
home : /home/barthel/work/app/apache-karaf-2.2.11
base : /home/barthel/work/app/apache-karaf-2.2.11
OSGi:
framework : org.apache.felix.framework - 3.2.2
Operating System : Linux 3.8.0-27-generic
architecture : i386
processors : 2
Instance name : 7147@q35
Start time : Monday, July 29, 2013 8:40:28 PM CEST
Uptime : 2 hours 59 minutes
Java VM : OpenJDK Server VM 23.7-b01
vendor : Oracle Corporation
version : 1.7.0_25
Input arguments:
-Xms128M :
-Xmx512M :
-Dcom.sun.management.jmxremote :
-Djava.endorsed.dirs : [REMOVED]
-Djava.ext.dirs : [REMOVED]
-Dkaraf.instances : /home/barthel/work/app/apache-karaf-2.2.11/instances
-Dkaraf.home : /home/barthel/work/app/apache-karaf-2.2.11
-Dkaraf.base : /home/barthel/work/app/apache-karaf-2.2.11
-Dkaraf.data : /home/barthel/work/app/apache-karaf-2.2.11/data
-Djava.io.tmpdir : /home/barthel/work/app/apache-karaf-2.2.11/data/tmp
-Djava.util.logging.config.file :
/home/barthel/work/app/apache-karaf-2.2.11/etc/java.util.logging.properties
-Dkaraf.startLocalConsole : true
-Dkaraf.startRemoteShell : true
Classpath:
boot classpath : [REMOVED]
library path : [REMOVED]
classpath : [REMOVED]
System properties:
karaf.instances : /home/barthel/work/app/apache-karaf-2.2.11/instances
java.vm.version : 23.7-b01
karaf.base : /home/barthel/work/app/apache-karaf-2.2.11
karaf.name : root
karaf.restart : false
java.vendor.url : http://java.oracle.com/
sun.jnu.encoding : UTF-8
java.vm.info : mixed mode
karaf.admin.role : admin
user.dir : /home/barthel/work/app/apache-karaf-2.2.11
sun.cpu.isalist :
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
sun.os.patch.level : unknown
java.io.tmpdir : /home/barthel/work/app/apache-karaf-2.2.11/data/tmp
user.home : /home/barthel
java.awt.printerjob : sun.print.PSPrinterJob
java.version : 1.7.0_25
file.encoding.pkg : sun.io
java.vendor.url.bug : http://bugreport.sun.com/bugreport/
file.encoding : UTF-8
sun.java.command : org.apache.karaf.main.Main
line.separator :
karaf.home : /home/barthel/work/app/apache-karaf-2.2.11
java.vm.specification.vendor : Oracle Corporation
java.vm.vendor : Oracle Corporation
java.class.path : [REMOVED]
sun.io.unicode.encoding : UnicodeLittle
user.language : de
os.arch : i386
user.name : barthel
java.runtime.version : 1.7.0_25-b30
sun.boot.class.path : [REMOVED]
sun.cpu.endian : little
awt.toolkit : sun.awt.X11.XToolkit
sun.boot.library.path : /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386
java.home : /usr/lib/jvm/java-7-openjdk-i386/jre
java.vm.name : OpenJDK Server VM
java.endorsed.dirs : [REMOVED]
org.eclipse.jetty.util.log.class : org.eclipse.jetty.util.log.JavaUtilLog
karaf.startLocalConsole : true
sun.management.compiler : HotSpot Tiered Compilers
java.runtime.name : OpenJDK Runtime Environment
java.util.logging.config.file :
/home/barthel/work/app/apache-karaf-2.2.11/etc/java.util.logging.properties
java.library.path : [REMOVED]
file.separator : /
org.ops4j.pax.logging.DefaultServiceLog.level : ERROR
java.specification.vendor : Oracle Corporation
java.rmi.server.randomIDs : true
java.vm.specification.version : 1.7
karaf.default.repository : system
sun.java.launcher : SUN_STANDARD
user.timezone : Europe/Berlin
os.name : Linux
karaf.version : 2.2.11
path.separator : :
jline.nobell : true
java.ext.dirs : [REMOVED]
karaf.shell.init.script :
/home/barthel/work/app/apache-karaf-2.2.11/etc/shell.init.script
sun.arch.data.model : 32
xml.catalog.files :
karaf.startRemoteShell : true
java.specification.name : Java Platform API Specification
os.version : 3.8.0-27-generic
com.sun.management.jmxremote :
user.country : DE
java.class.version : 51.0
java.vendor : Oracle Corporation
karaf.data : /home/barthel/work/app/apache-karaf-2.2.11/data
java.vm.specification.name : Java Virtual Machine Specification
java.specification.version : 1.7
JIT compiler : HotSpot Tiered Compilers
total compile time : 15.440 seconds
Threads:
live : 34
daemon : 29
peak : 35
total : 85
Classes:
loaded : 3,457
total : 3,466
unloaded : 9
HEAP Memory:
commited : 130,432 kbytes
init : 131,072 kbytes
used : 47,794 kbytes
maximal : 466,048 kbytes
NON-HEAP Memory:
commited : 29,440 kbytes
init : 18,688 kbytes
used : 16,811 kbytes
maximal : 180,224 kbytes
pending objects : 0
Garbage Collectors : 'PS Scavenge' collections: 211 time: 0.658
seconds
Garbage Collectors : 'PS MarkSweep' collections: 3 time: 0.389 seconds
{code}
was (Author: barthel):
The attached patch creates a file named 'environment.txt' with the content
like:
{code:title=environment.txt}
Dump timestamp : Monday, July 29, 2013 9:54:12 PM CEST
Karaf : root 2.2.11
home : /home/barthel/work/app/apache-karaf-2.2.11
base : /home/barthel/work/app/apache-karaf-2.2.11
OSGi:
framework : org.apache.felix.framework - 3.2.2
Operating System : Linux 3.8.0-27-generic
architecture : i386
processors : 2
Instance name : 20571@q35
Start time : Monday, July 29, 2013 9:54:12 PM CEST
Uptime : 0.098 seconds
Java VM : Java HotSpot(TM) Server VM 1.5.0_22-b03
vendor : Sun Microsystems Inc.
version : 1.5.0_22
Input arguments:
-Dfile.encoding : UTF-8
Classpath:
boot classpath : [REMOVED]
library path : [REMOVED]
classpath : [REMOVED]
System properties:
java.version : 1.5.0_22
sun.io.unicode.encoding : UnicodeLittle
java.class.path : [REMOVED]
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
user.language : de
sun.os.patch.level : unknown
os.version : 3.8.0-27-generic
java.specification.vendor : Sun Microsystems Inc.
java.class.version : 49.0
file.encoding : UTF-8
sun.boot.class.path : [REMOVED]
java.vm.version : 1.5.0_22-b03
java.io.tmpdir : /tmp
java.home : /home/barthel/work/app/java/oracle/jdk1.5.0_22/jre
user.name : barthel
java.specification.name : Java Platform API Specification
java.ext.dirs :
/home/barthel/work/app/java/oracle/jdk1.5.0_22/jre/lib/ext
java.vm.info : mixed mode
sun.arch.data.model : 32
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.version : 1.0
sun.management.compiler : HotSpot Server Compiler
sun.cpu.endian : little
path.separator : :
java.vm.name : Java HotSpot(TM) Server VM
user.country : DE
user.timezone : Europe/Berlin
file.separator : /
os.arch : i386
sun.boot.library.path :
/home/barthel/work/app/java/oracle/jdk1.5.0_22/jre/lib/i386
file.encoding.pkg : sun.io
line.separator :
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
java.vm.vendor : Sun Microsystems Inc.
os.name : Linux
java.vendor.url : http://java.sun.com/
java.awt.printerjob : sun.print.PSPrinterJob
sun.jnu.encoding : UTF-8
java.vm.specification.vendor : Sun Microsystems Inc.
sun.java.launcher : SUN_STANDARD
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version : 1.5.0_22-b03
java.endorsed.dirs :
/home/barthel/work/app/java/oracle/jdk1.5.0_22/jre/lib/endorsed
java.library.path : [REMOVED]
sun.cpu.isalist :
user.dir : [REMOVED]
user.home : /home/barthel
java.specification.version : 1.5
java.vendor : Sun Microsystems Inc.
JIT compiler : HotSpot Server Compiler
total compile time : 0.007 seconds
Threads:
live : 4
daemon : 3
peak : 4
total : 4
Classes:
loaded : 483
total : 483
unloaded : 0
HEAP Memory:
commited : 39,744 kbytes
init : 40,229 kbytes
used : 741 kbytes
maximal : 621,248 kbytes
NON-HEAP Memory:
commited : 18,688 kbytes
init : 18,688 kbytes
used : 2,922 kbytes
maximal : 114,688 kbytes
pending objects : 0
Garbage Collectors : 'PS Scavenge' collections: 0 time: 0.000 seconds
Garbage Collectors : 'PS MarkSweep' collections: 0 time: 0.000 seconds
{code}
> dev:create-dump: extending with environment information
> -------------------------------------------------------
>
> Key: KARAF-2415
> URL: https://issues.apache.org/jira/browse/KARAF-2415
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-shell
> Affects Versions: 2.2.8
> Environment: Karaf 2.2.8
> Reporter: Uwe Barthel
> Assignee: Freeman Fang
> Priority: Minor
> Labels: newbie, patch
> Fix For: 2.2.12, 2.3.3, 2.4.0, 3.0.0, 3.1.0
>
> Attachments: 2.2.12_bundle_dump_with_version_20130729.patch,
> 2.2.12_environment_dump_20130729.patch
>
>
> It would be helpful if the 'create-dump' command is also printing out the
> current runtime environment.
> The amount of information should be similar to the 'VM Summary' tab of the
> JConsole.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira