Giter VIP home page Giter VIP logo

eostermueller / javaperformancetroubleshooting Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 13.0 46.1 MB

Live Demonstrations of Java Performance Problems. Instructions: https://github.com/eostermueller/javaPerformanceTroubleshooting/wiki/Install-and-Run

Home Page: https://www.amazon.com/Troubleshooting-Java-Performance-Detecting-Anti-Patterns-ebook/dp/B07633Q67C/ref=sr_1_1?ie=UTF8&qid=1514583170&sr=8-1&keywords=ostermueller

License: Other

Shell 3.61% Java 94.12% Batchfile 2.27%
java jmeter load-testing metrics performance

javaperformancetroubleshooting's People

Contributors

adamclmns avatar eostermueller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

javaperformancetroubleshooting's Issues

images for jpt wiki pages.

when people do a clone, I want to minimize the size of the download, so storing images in this 'issue' instead.

jpt_init_script_screencast

init.sh not reporting db load counts.

While installing javaPerformanceTroubleshooting I ran into a problem. At the end of the init.sh run I received this message:

@@
@@ Here are row counts of tables:
@@
Shutting down TCP Server at tcp://localhost:9092
@@
@@ init.sh is finished.
@@ The db has been stopped.
@@

According to the instructions it's supposed to look like this:

@@ Here are row counts of tables:
@@
[INFO] S01.BRANCHES=100
[INFO] S01.ACCOUNTS=125000
[INFO] S01.HISTORY=1250000
[INFO] S02.BRANCHES=100
[INFO] S02.ACCOUNTS=250000
[INFO] S02.HISTORY=2500000
Shutting down TCP Server at tcp://localhost:9092
@@
@@ init.sh is finished.
@@ The db has been stopped.

For some reason it is not showing the row counts. Could you help me with this issue. I am sure it is caused by a simple mistake on my end. I am using a laptop with the Ubuntu OS.

loadDb.sh fails -- missing h2 driver in cp

The following shows 100% error when running PS_HOME/db/loadDb.sh.

summary =      1 in     0s =   29.4/s Avg:     0 Min:     0 Max:     0 Err:     1 (100.00%)

The jmeter.log file in that same folder shows this error:

2016/06/12 09:00:34 WARN  - jmeter.protocol.jdbc.config.DataSourceElement: Could not load driver: org.h2.Driver java.lang.ClassNotFoundException: org.h2.Driver
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

which I have fixed by adding a reference to the h2 jar file to the two java/jmeter invocations in loadDb.sh:

-Juser.classpath=$dir/h2/bin

the updated loadDb.sh is now in git.
--Erik

Error in NonGUIDriver

Shawn M. reported the following problem when running PS_HOME/db/loadDb.sh.
I have made a change to the two .jmx files in PS_HOME/db.
Those .jmx files were unnecessarily referencing 3rd part dependency (JMeterPlugins).
I've removed the references and retested locally.
--Erik

Got as far as running the loadDb script.  Getting this error:
Error in NonGUIDriver java.lang.NullPointerException
2016/06/10 08:32:01 ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException
        at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:92)
        at org.apache.jmeter.JMeter.runNonGui(JMeter.java:754)
        at org.apache.jmeter.JMeter.startNonGui(JMeter.java:732)
        at org.apache.jmeter.JMeter.start(JMeter.java:390)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.jmeter.NewDriver.main(NewDriver.java:259)

smckinn@ubuntu:~/tmp/Erik/1/perfSandbox/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.