AnsweredAssumed Answered

High CPU consumption by alfresco2.1 installed in VMWare

Question asked by dhindu on Jan 4, 2009
Latest reply on Jan 10, 2009 by mrogers
Hi,

We are using the Alfresco 2.1 (tomcat bundled) in our application. In production setup, the alfresco has been deployed in the virtualized environment. The configuration of the Virtualized environment is given below:
Model : HP- ProLiant BL 456c G5
Processor : 8 CPUs of 2.3GHz each
Processor Type : Quad-core AMD Opteron™ Processor 2356


There are 5 hosts installed in the VMWare including the alfresco. The details are given below along with CPU/RAM allocation details
      Hosts                Current CPU/RAM
1. Solaris  hosting alfresco and our application (2 different processes).    2 CPU/2GB
2. Our application using Adobe AE CS3 - Node 1         2 CPU/2GB
3. Our application using Adobe AE CS3 - Node 2         2 CPU/2GB
4. Our application using Adobe AE CS3 - Node 3         2 CPU/2GB

On other additional info is that the Alfresco file system is located in a SAN DISK Storage array and is mounted on to this instance.

We have observed that the Alfresco process consumes 75% CPU in the intial 1 CPU allocated for the Solaris host even though the system is idle. This affected the other applications (Adobe After Effects CS3) running in the virtualized environment. We have allocated 1 more CPU through VMWare configuration for the solaris host even then alfresco consumes ~ 75% of the total 2 CPU including the newly allocated CPU.

This causes the other production application running the VM environment.

The contents from the file-server-custom.xml file from the extension folder is given below:
[size=90]
<alfresco-config area="file-servers">
   <config evaluator="string-compare" condition="CIFS Server">
     <serverEnable enabled="true"/>
      <host name="AlfrescoFF" domain="WORKGROUP"/>
      <comment>Alfresco CIFS Server</comment>
      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.255</broadcast>
      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <!– Can be mapped to non-privileged ports, then use firewall rules to forward
          requests from the standard ports –>
     <!–      
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
     –>
      <hostAnnounce interval="5"/>
      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>
<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>
   <config evaluator="string-compare" condition="FTP Server">
     <serverEnable enabled="true"/>
     <port>1121</port>
          <threadPool init="25" max="50"/>
<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>
   <config evaluator="string-compare" condition="NFS Server">
     <serverEnable enabled="false"/>
   </config>
   <config evaluator="string-compare" condition="Filesystems">
     <filesystems>
       <!– Alfresco repository access shared filesystem –>
         <filesystem name="Alfresco">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
         <!– Add a URL file to each folder that links back to the web client –>
         <urlFile>
               <filename>__AlfrescoClient.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>
         <!– Mark locked files as offline –>
          <offlineFiles/>
         <!– Desktop actions –>
         <!– Uses a client-side application to trigger a server-side action                         –>
         <!–   Echo - displays a message echoed from the server                                     –>
         <!–   URL  - launches a URL via the Windows shell                                          –>
         <!–   CmdLine - launches the Notepad application                                           –>
         <!–   CheckInOut - checks files in/out, drag and drop files onto the application           –>
         <!–   JavaScript - run a server-side script                                                –>
         <!–   JavaScriptURL - server-side script that generates a URL to the folder using a ticket –>
         <!–                   to avoid having to logon                                             –>
<!–
         <desktopActions>
            <global>
                    <path>alfresco/desktop/Alfresco.exe</path>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </global>
            <action>
   <class>org.alfresco.filesys.smb.server.repo.desk.EchoDesktopAction</class>
               <name>Echo</name>
                 <filename>__AlfrescoEcho.exe</filename>
            </action>
            <action>
   <class>org.alfresco.filesys.smb.server.repo.desk.URLDesktopAction</class>
               <name>URL</name>
                 <filename>__AlfrescoURL.exe</filename>
            </action>
            <action>
   <class>org.alfresco.filesys.smb.server.repo.desk.CmdLineDesktopAction</class>
               <name>CmdLine</name>
                 <filename>__AlfrescoCmd.exe</filename>
            </action>
            <action>
   <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
               <name>CheckInOut</name>
                 <filename>__AlfrescoCheckInOut.exe</filename>
            </action>
            <action>
   <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScript</name>
               <filename>__AlfrescoScript.exe</filename>
               <script>alfresco/desktop/dumpRequest.js</script>
               <attributes>anyFiles, multiplePaths , allowNoParams</attributes>
               <preprocess>confirm, copyToTarget</preprocess>
            </action>
            <action>
   <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScriptURL</name>
               <filename>__AlfrescoDetails.exe</filename>
               <script>alfresco/desktop/showDetails.js</script>
               <attributes>anyFiles</attributes>
               <preprocess>copyToTarget</preprocess>
            </action>
         </desktopActions>
–>         
<!–
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
            </accessControl>
–>
         </filesystem>
       <!– AVM virtualization view of all stores/versions for WCM –>
         <avmfilesystem name="AVM">
            <virtualView/>
         </avmfilesystem>
      </filesystems>
   </config>
   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="alfresco">
      </authenticator>
<!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="90.1.0.90" access="Write"/>
      </globalAccessControl>
      <users>
         <localuser name="user">
            <password>user</password>
            <comment>Normal user account</comment>
         </localuser>
         <localuser name="administrator">
            <password>admin</password>
            <administrator/>
            <comment>Administrator account</comment>
         </localuser>
      </users>
–>
   </config>
</alfresco-config>
[/size]

Our suspicion is around any potential configuration that was activated that consumes CPU internally for its usage.

Any help is appreciated.

Thanks in advance,
Dhinesh Kumar P

Outcomes