Web Agent Hogging CPU Time

I have a particular webagent that seems to be grabbing all the CPU resource. I believe this is the case because when this agent runs, CPU utilisation of nhttp peaks at 80% CPU. when the Agent isn’t running, CPU idles at around 2%.

Box is Compaq Proliant ML530 2 x 1GHz XEON 3GB Ram.

Approximately 250 users use application for recording Timesheets. The particular Agent processes the Audit Trail so rns whenever a document is created or modified. The effect on the Server is worse at month end for obvious reasons.

The problem is, I’m not a developer and have had to inherit the application on a etmp basis whilst the company looks for a new developer.

Any ideas as to what I can do to fine tune the servers performance?

Subject: Web Agent Hogging CPU Time

If it’s an LS agent, you could put an TimerStart=Timer at the beginning and TimerEnd=Timer at the end of the agent, and a Print "Exec time: " & TimerEnd-TimerStart as last statement in the agent.

If the agent is running fast, you might have a problem with orphaned agent data. To fix that, do the following (thanks to Panu Haaramo for this tip):

  1. Enable the following database properties:

           + Don't maintain unread marks 
    
           + Optimize document table map 
    
           + Don't overwrite free space 
    
           + Use LZ1 compression for attachments 
    
           + Don't allow headline monitoring 
    
    1. Run “compagnt.exe directory/database.nsf” from DOS while Domino is not running (This tool written by Julie Kadashevich/IBM removes orphaned agent data, and can be found on IBM’s site: http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg24004199)

    2. Run “ncompact directory/database.nsf” from DOS while Domino is not running

If your agent runs fast, and the above fix didn’t improve the speed enough, your only choice is to downgrade to 6.0.2CF2, it runs domino web applications much faster at least for me.

Subject: Web Agent Hogging CPU Time

Some Extra Information.

Have copied the databases to a test server with interesting results.

DB Timesheets.nsf 58,000 documents 1.2GB 98.8% copied to 58,000 documents 200MB 94.3%

Where has the extra gigabyte come from?

Timesheetsaudit 125,000 documents 0.5GB 97.8% copied to 120,000 documents 110MB 94.3%

The DB is much faster on the slower test server.

Subject: RE: Web Agent Hogging CPU Time

Hi,

I have similar Databases with these “Shrink” results but in my case there are a lot (too much) views in the database! :wink:

set the option (delete view index after 15 Days inactivity) so you can also check the users how often the views are to rebuilt! (dont user CTRL + ALT + F9 in this database!)

hope this helps

Thomas