Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokuhirom/go-hsperfdata
Quite fast jps/jstat
https://github.com/tokuhirom/go-hsperfdata
Last synced: 18 days ago
JSON representation
Quite fast jps/jstat
- Host: GitHub
- URL: https://github.com/tokuhirom/go-hsperfdata
- Owner: tokuhirom
- Created: 2015-06-12T22:22:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T04:53:42.000Z (about 6 years ago)
- Last Synced: 2024-10-11T20:56:53.253Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 1.03 MB
- Stars: 24
- Watchers: 4
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-hsperfdata
[![Build Status](https://travis-ci.org/tokuhirom/go-hsperfdata.svg?branch=master)](https://travis-ci.org/tokuhirom/go-hsperfdata)
HotSpot JVM's performance data analyzer written in Golang.
## What's this?
Parser library for HotSpot JVM's performance data.
And there is some useful commands built on it.## Why?
jstat/jps is slow. And these commands aren't programmable.
## INSTALL
go get github.com/tokuhirom/go-hsperfdata/hsps/
go get github.com/tokuhirom/go-hsperfdata/hsstat/
go get github.com/tokuhirom/go-hsperfdata/hssampler/
go get github.com/tokuhirom/go-hsperfdata/hsjcmd/## SYNOPSIS
$ hsps
13223
21916 org.jetbrains.jps.cmdline.Launcher$ hsstat 21916
sun.rt._sync_Inflations=13
sun.rt._sync_Deflations=11
sun.rt._sync_ContendedLockAttempts=65
...
sun.classloader.findClassTime=937707942
sun.urlClassLoader.readClassBytesTime=164844351
sun.zip.zipFiles=135
sun.zip.zipFile.openTime=23649506## Benchmarking
```
$ time hsps
13223
21916 org.jetbrains.jps.cmdline.Launcher
hsps 0.00s user 0.00s system 83% cpu 0.010 total$ time jps
13223
21916 Launcher
93597 Jps
jps 0.41s user 0.09s system 104% cpu 0.479 total
```## LICENSE
The MIT License (MIT)
Copyright © 2015 Tokuhiro Matsuno, http://64p.org/Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.