User dfeb81947d
02-09-2010 13:04:40
Dear Support,
I have a question about load balancing and structure caching.
According to the documentation about structure cache on http://www.chemaxon.com/jchem/doc/dev/dbconcepts/, I have a question. It said that "The structure cache is stored in a static pool, therefore
a structure table is only cached once within the same Java Virtual Machine
(JVM)", so It means that If I have many instance of tomcat server, I will have several JVM corresponding to each server. It means one cache per tomcat server (however the number of application under those tomcat), if I understand clearly the meaning.
But If I have many instance of tomcar to run applications, how behave the structure caching? Does a new structure cache is created? And what if clustering is used between two tomcat server?
Has jvm on jdk1.5 under 32bits OS is limited to 1.5 Gb, if someone whould want more memory he has to use multiple Tomcat instance and use load balancing. In that case I guess there is one structure caching per Tomcat. But if using clustering for example (sharing resources and object between many Tomcat instance) are there each structure caching per tomcat?
If I have 5 applications under on Tomcat Server, can you confirm that those 5 applications use the same structure cache? But iif those 5 applications are installed all alone under a single tomcat (it means 5 Tomcat), there will be 5 structure cache in each tomcat JVM. Is there a way that those 5 tomcat (i.e. 5 applications) share the same cache? Without using JChem Cartridge? (Perhaps using Socket? RMI? CORBA? To set a communication between the JVM?)
Thank you in advance for your answers. I apologize if these are dumb questions and it waste your time.
Best Regards
Jacques