[Opensource] Getting use of the Cache System
Turgay Zengin
turgay_zengin at hotmail.com
Wed Jun 12 02:19:45 PDT 2002
Hello,
I have problems with the cache system. I read the developers guide, but
maybe the documentation is not updated for the 4.1ea2 release, can you
please help me. I want my dbobjects get use of the cache system for faster
response.
I am using Expresso 4.1ea2. When I start Tomcat on my server, I get this
warning:
WARN [main] cache.CacheManager (CacheManager.java:313) - WARNING: Out of
memory & no more caches can be cleared. Avail:7315456.0, Free:527944.0,
7.216% free
(Surprisingly, I don't get this warning when I run expresso on my desktop)
I tried to increase the heap size by adding the following to catalina.bat:
if not "%JAVA_OPTS%" == "" goto hasJavaOpts
set JAVA_OPTS=-Xmx256m -Xms192m
:hasJavaOpts
The server is running Windows Nt 4.0, and has 512 MB RAM. When started,
java.exe memory usage shows about 30MB, and when I request about 1000
dbobjects, it goes up to 44MB. But in the Status page (from Status.do), I
cannot see my dbobjects listed under "DBObject Statistics". Also, in the
"View System Cache" link (CacheControl.do), I cannot see my dbobjects
listed.
My database is Oracle 8i, and I have
cache="y"
entry in expresso-config.xml.
I also inserted an entry for my dbobject in the DBObjLimit table (from the
Setup page).
What else should I do to make Tomcat and the cache system to use more
memory? (Is there anything I am doing wrong? or did I misunderstand the
cache system completely?)
Thanks in advance,
Turgay Zengin
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
More information about the Opensource
mailing list