My environment:
Redhat Linux 8.0 + apache 2 + php4.3.1 + jdk1.3.1
I install php as module instead of cgi.
When I first call java in php, it run slowly. I think it is because of creating JVM and loading classes. The code run fastly after first time. However, I find the code still run slowly sometimes. The phenomena is same as first time.
Is it because the system destroy the original JVM and recreate the JVM?
If yes, how can i avoid it or decrease the frequence of creating JVM? Because it will make performence much worse.