Things are working as far as I can tell (things seem faster). I don't think I have an auxillary cache. Its all in memory (read-only caching). I noticed some warnings at startup. The Hibernate forums said to ignore them. After looking over the output, I noticed that there are 7 errors (one for each thread, perhaps?) while trying to create an auxFactory. Do I need to add an auxillary cache? Or can I go on without one? The cache isn't mission critical. I just want to cache some read-only in a clustered environment. Thanks for your quick reply

-nick

Here's my cache.ccf and the startup log output:

cache.ccf (modified from http://hibernate.org/61.html)

# DEFAULT CACHE REGION (memory cache)
jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=10000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.IsSpool=false
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=false

# merged report categories cache
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory=DC
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.cacheattributes.MaxObjects=1000
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.cacheattributes.UseMemoryShrinker=true
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.cacheattributes.ShrinkerIntervalSeconds=60
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes.IsEternal=false
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes.IsSpool=false
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes.IsRemote=false
jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes.IsLateral=false

###### REPEAT FOR OTHER OBJECTS

Log output:

...
INFO 23:08:11,151 (SettingsFactory.buildSettings():99): ---> Query language substitutions: {}
INFO 23:08:11,167 (SettingsFactory.buildSettings():110): ---> cache provider: net.sf.hibernate.cache.JCSCacheProvider
INFO 23:08:11,167 (Configuration.configureCaches():930): ---> instantiating and configuring caches
WARN 23:08:11,229 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.im.common.auth.IMGroup.elementattributes
WARN 23:08:11,229 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.im.common.auth.IMGroup.elementattributes', using defaults.
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,261 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.im.common.auth.IMGroup.permissions.elementattributes
WARN 23:08:11,261 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.im.common.auth.IMGroup.permissions.elementattributes', using defaults.
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,261 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.im.common.domain.org.LLNLOrgNode.elementattributes
WARN 23:08:11,261 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.im.common.domain.org.LLNLOrgNode.elementattributes', using defaults.
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,261 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.im.common.domain.ReportCategory.elementattributes
WARN 23:08:11,261 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.im.common.domain.ReportCategory.elementattributes', using defaults.
WARN 23:08:11,261 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,276 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
WARN 23:08:11,276 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes
WARN 23:08:11,276 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.im.common.domain.MergedReportCategory.elementattributes', using defaults.
WARN 23:08:11,276 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,276 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
WARN 23:08:11,276 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.domain.person.Person.elementattributes
WARN 23:08:11,276 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.domain.person.Person.elementattributes', using defaults.
WARN 23:08:11,292 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,292 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
WARN 23:08:11,292 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.region.gov.llnl.ais.im.common.auth.IMPermission.elementattributes
WARN 23:08:11,292 (CompositeCacheConfigurator.parseElementAttributes():375): ---> Could not instantiate eAttr named 'jcs.region.gov.llnl.ais.im.common.auth.IMPermission.elementattributes', using defaults.
WARN 23:08:11,292 (OptionConverter.instantiateByKey():189): ---> Could not find value for key jcs.auxiliary.DC
ERROR 23:08:11,292 (CompositeCacheConfigurator.parseAuxiliary():413): ---> Could not instantiate auxFactory named "DC".
INFO 23:08:11,604 (SessionFactoryImpl.<init>():112): ---> building session factory
...




At 12:47 AM 10/27/2003 -0600, you wrote:
That doesn't sound right.  Those threads are trying to perform some
event to an auxiliary cache.  Is everything working?  Does the disk
cache have write access to the file?  Do you have laterals that might be
blocked by a firewall?

Aaron

> -----Original Message-----
> From: Nicholas J. Dellamaggiore [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 26, 2003 11:41 PM
> To: [EMAIL PROTECTED]
> Subject: ElementEventQueue question
>
> Hi. I'm using JCS with hibernate and it's working great. I'm was
debugging
> in Eclipse and I happened to notice that there are 7 ElementEventQueue
> threads started up. I know there are just sitting there blocking, but
I
> get
> worried about having lots of extra threads running around. Is there a
> setting to tweak the number of EventQueues? Thanks.
>
> -nick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

/** * Nicholas J. Dellamaggiore * Software Developer (AIS/IBIS) * Phone: x26585 * Office: B671 R2321 * ICQ: 162919183 AIM: wontonsoup79 */


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to