Optimizing Hibernate and Mysql Performance

Posted on 1 CommentPosted in Java, Technology Center

Optimizing Hibernate and Mysql Performance

I would like to share some real-world experiences in improving Hibernate and MySQL performance that we have encountered for the past couple of years. Some of the large applications we developed handles about 500 concurrent users on 8 gigabytes worth of data. For such application size, performance becomes a concern and optimal settings are necessary.

read more...

Improve Java Web Development Server Startup Time

Posted on 5 CommentsPosted in Java, Technology Center

Improve Java Web Development Server Startup Time

When developing an application in a web server environment, the ease of use and startup time of the application are crucial elements for best performance. Due to this, the Hot Code Replace (HCR) debugging technique was developed to “facilitate experimental development and to foster iterative trial-and-error coding,” effectively improving…

read more...

Hidden Flaw in Audit Logging w/ Hibernate Interceptor & ACEGI

Posted on 10 CommentsPosted in Java, Technology Center

Hidden Flaw in Audit Logging w/ Hibernate Interceptor & ACEGI

We’ve recently came across a fatal problem in our audit logging facility where Acegi returns a different user other than the actual user. It’s a little hard to replicate because it happens only when multiple users are accessing the system. In summary, audit logs were associated to other users because Acegi SecurityContextHolder is returning incorrect…

read more...

Troubleshooting Tips: Spring Transactions on JPA

Posted on 11 CommentsPosted in Java, Technology Center

Troubleshooting Tips: Spring Transactions on JPA

After two days of debugging our codes on transaction handling, I’m writing this post to share my experience so others don’t have to undergo the same pain and torture. However, this post assumes that you’ve setup your Spring transactions – either via AOP or annotations. If you haven’t done so, I’ve listed some good references right after the jump.

read more...