Java log generator
Pre-requisites:
Build:
mvn clean package
an executable jar will be built in target/
Edit the configuration file here
throttleNPerSec: -1 defines how fast the logs are generated, -1 indicates no throttling, 1000 indicates 1k events are generated per second.
./bin/testlog.sh
Logs are generated under logs directory
$ ./bin/run.sh 3
Started the process 1 with Log name: /logs/dashbase-1544179256-1.log...
Started the process 2 with Log name: /logs/dashbase-1544179256-2.log...
Started the process 3 with Log name: /logs/dashbase-1544179256-3.log...
Got Identifier(group name) of these process: 1544179256
You can kill them by `./bin/kill.sh 1544179256`
appending output to nohup.out
appending output to nohup.out
appending output to nohup.out
$ ./bin/kill.sh 1544179256`
./bin/run.sh 3 30
$ python ./bin/show.py
Producer group 1544184708 have 3 producers with throttle 30.
Producer group 1544185211 have 2 producers with throttle 20.
Producer group 1544185223 have 3 producers with throttle -1.
Producer group 1544185281 have 4 producers with throttle -1.
Producer group 1544185307 have 50 producers with throttle 1.
You can kill group by `./bin/kill.sh <group-name>`, or use `./bin/kill.sh` to kill them all.
Use `ps -ef | grep java` to get all running processed.
./bin/kill.sh
Content type
Image
Digest
Size
110.1 MB
Last updated
over 7 years ago
docker pull dashbase/logmatters