caelum/vraptor4 — pull request #367 by garcia-jj (2014-02-13 07:31:25+00:00)
Title: Mirror instead invoke dynamic, since uses less memory and cpu

Using mirror instead invoke dynamic, I got less memory and CPU usage. The tests was executed in two steps: production and development using Mission Control.

In production env Wildfly runing in domain mode with 4 nodes with 1G max memory (780M + 250 for permgen). All instances runing on same machine with session replication and dual core CPU.

Before I got between 300M and 500M of memory usage average. Runing for 5-6 days I got an out of memory. After I got somethink like 300M and 400M of memory, and runing the app without any restart for 15 days no out of memory happens.

In development I test the app runing with jmeter with 10 simultaneous users with infinite loop count for 3 days. No out of memory happens and memory still between 300M and 400M using the same parameters like production, except that runing in standalone mode on quad-core machine. Jmeter gots an out of memory in many times, but app still running without any problems.

I'm using vraptor with beans discovery = ALL for this test.

Anyone have interest to do more tests or suugest another aproach to me?