05-03-2007 10:59 AM
05-03-2007 04:56 PM
org.alfresco.catalina.host.AVMHostConfig.deployAllAVMwebappsInRepository
05-04-2007 12:25 PM
#—————————————————————-
# The -server flag avoids problems on Linux and Mac.
# The -Xmx512M flag gives the JVM ample memory.
#—————————————————————-
if ! [[ "${CATALINA_OPTS}" =~ '-server' ]]; then
CATALINA_OPTS="$CATALINA_OPTS -server"
fi
if ! [[ "${CATALINA_OPTS}" =~ '-Xmx' ]]; then
CATALINA_OPTS="$CATALINA_OPTS -Xmx512M"
fi
tomcat5 //US// –JvmSs NNN
tomcat5 //US// –JvmMs NNN
tomcat5 //US// –JvmMx NNN
etc…
Or you could tune them all at once:tomcat5 //US// –JvmSs NNN –JvmMs NNN –JvmMx NNN
05-04-2007 01:19 PM
protected void deployAllAVMwebappsInRepository()
{
HashMap<String, AVMWebappDescriptor> webapp_descriptors =
new HashMap<String, AVMWebappDescriptor>();
LinkedList<String> avm_webapp_paths = new LinkedList<String>();
try
{
Map<String, Map<QName, PropertyValue>> store_dns_entries =
AVMRemote_.queryStoresPropertyKey(
QName.createQName(null,".dns.%"));
for ( Map.Entry<String, Map<QName, PropertyValue>>
store_dns_entry : store_dns_entries.entrySet() )
{
String store_name = store_dns_entry.getKey();
…
}
}
}
String store_name = store_dns_entry.getKey();
for( String registeredStoreName : registeredStoreNames )
{
if( store_name.contains( registeredStoreName ) )
{
…
// rest of code as-is from here
}
}
05-04-2007 03:42 PM
But there is something else to consider here. Say I have only 5 web
project spaces. But for each of those spaces, I have 5 users. With the
current setup, that loads up 25 webapps into Tomcat. And if one of those
apps is particularly heavy, it will definitely kill the server.
Then, a classloader hierarchy for the virtual webapps is created that
parallels the overlay structure of the AVM stores containing them
(this is used whenever possible, to allow the virtualization server to scale).
05-04-2007 05:18 PM
05-14-2007 10:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.