This is the section to which I was referring
red5-common.xml
--------------------------
Classes that are shared between all child contexts are declared in this file.
It contains information about the object serializers / deserializers, the
codecs to be used for the network protocols as well as the available video
codecs.
The object (FLV) cache is configured / spring-wired in this file. Four implementations
are currently available; The first one is our own creation (simple byte-buffers) and the others use
WhirlyCache, or Ehcache. If no caching is desired then the NoCache implementation should be specified like so:
<bean id="object.cache" class="org.red5.server.cache.NoCacheImpl"/>
The other bean configurations are as follows (Only one may be used at a time):
- Red5 homegrown simple example
<bean id="object.cache" class="org.red5.server.cache.CacheImpl" init-method="init" autowire="byType">
<property name="maxEntries"><value>5</value></property>
</bean>
- EhCache http://ehcache.sourceforge.net/
<bean id="object.cache" class="org.red5.server.cache.EhCacheImpl" init-method="init">
<property name="diskStore" value="java.io.tmpdir" />
<property name="memoryStoreEvictionPolicy" value="LFU" />
<property name="cacheManagerEventListener"><null/></property>
<property name="cacheConfigs">
<list>
<bean class="net.sf.ehcache.config.CacheConfiguration">
<property name="name" value="flv.cache" />
<property name="maxElementsInMemory" value="5" />
<property name="eternal" value="false" />
<property name="timeToIdleSeconds" value="0" />
<property name="timeToLiveSeconds" value="0" />
<property name="overflowToDisk" value="false" />
<property name="diskPersistent" value="false" />
</bean>
</list>
</property>
</bean>
- Whirlycache https://whirlycache.dev.java.net/
<bean id="object.cache " class="org.red5.server.cache.WhirlyCacheImpl" init-method="init" autowire="byType">
<property name="maxEntries" value="5" />
<property name="cacheConfig">
<bean class="com.whirlycott.cache.CacheConfiguration">
<property name="name" value="flv.cache" />
<property name="maxSize" value="5" />
<!-- This policy removes cached items, biased towards least frequently used (LFU) Items -->
<property name="policy"><value>com.whirlycott.cache.policy.LFUMaintenancePolicy </value></property>
<!-- This policy removes cached items, biased towards least recently used (LRU) Items -->
<!-- property name="policy"><value>com.whirlycott.cache.policy.LRUMaintenancePolicy </value></property -->
<!-- This policy removes cache items in the order in which they were added -->
<!-- property name="policy"><value>com.whirlycott.cache.policy.FIFOMaintenancePolicy </value></property -->
<!-- A predicate for filtering Collections of Items based on their expiration time -->
<!-- property name="policy"><value>com.whirlycott.cache.policy.ExpirationTimePredicate </value></property -->
<!-- property name="backend"><value>com.whirlycott.cache.impl.ConcurrentHashMapImpl</value></property -->
<property name="backend"><value> com.whirlycott.cache.impl.FastHashMapImpl</value></property>
</bean>
</property>
</bean>
In the current trunk the "no cache" implementation is the default. Im looking through the code right now and will build in a clean location to see if i can reproduce your problem.
Paul
On 10/27/06, Dan Rossi <[EMAIL PROTECTED]> wrote:
ive turned off streaming our large files in the meantime, ill wait for a response. we still have our windows media streams as backup untill the flash streaming stablises.
Dan Rossi wrote:ive reverted it back to no cache now, we can only stream the small tour files for now. Our server is not using any resources at all really low cpu and 1800MB of ram available.
Dan Rossi wrote:My apologies, i think thats a unix newline thing, wordpad opened it up fine, however the change to red-common is causing exceptions
[INFO] 1844 main:( org.springframework.beans.factory.support.DefaultListableBean
Factory.info ) Destroying singletons in {org.springframework.beans.factory.suppo
rt.DefaultListableBeanFactory defining beans [red5.common,red5.core,context.load
er,jetty6.server]; root of BeanFactory hierarchy}
Exception in thread "main" java.lang.NoSuchMethodException: org.red5.io.flv.impl
.FLV.<init>()
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getDeclaredConstructor(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:5
9)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:52)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639)
_______________________________________________
Red5 mailing list
[email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
The early bird may get the worm, but the second mouse gets the cheese.
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
