A.C
A.C

Reputation: 197

monitor performance with JPA + Spring

What are the tools and approaches you suggest to use for monitoring performance? My app is running on Tomcat, Spring 3, JPA, Hibernate and solr. I've noticed some lag/slow activity on a certain page. The app does not have any code of cache setup. Or even connection pooling.

Pardon my beginner-style questions, I'm only entering the "performance monitoring" world just now...

I know couple of things to look at is- dabatase calls, connection pooling, indexed tables, caching etc.

Upvotes: 0

Views: 2060

Answers (2)

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 341003

  1. You absolutely need connection pooling. It's a no-brainer, there are libraries like Bone CP, Commons DBCP or c3p0 that do this transparently.

  2. You must implemented automated load/stress test. JMeter is pretty easy to use, other tools like that are Gatling and Grinder.

  3. Enable SQL logging and statistics. Most likely too many or too complex queries are slowing down your page.

  4. Use a profiler. Either commercial (JProfiler, YourKit) or the one included in JVisualVM.

Upvotes: 1

Tiarê Balbi
Tiarê Balbi

Reputation: 1509

You can use this application to monitor your application:

http://newrelic.com/

He has a free plan!

Upvotes: 0

Related Questions