Java Agent Extremely Slow--No Errors

I’m relatevely new to Java, and I created a Java agent that performs calculations (reading from and writing to a back-end table).

My problem is that the agent will run fine for some and slow for others, then it will turn around and run well for the users who were slowing down and slow for the user who were fast. I never get any error messages, if the users wait long enough the data will be returned.

I think I may have pinpointed the spot where the agent slows down. It appears that it has trouble (sometimes) when I run a Notes agent from within this (Java) agent. This is a part of the program that loops through each period to return the calculations.

If I CNTRL+BREAK out of the process, I will be returned the message “error cleaning up agent threads”, but I think that may be because the way I terminated the program. Again, if the user waits long enough, it will eventually return the data.

Thanks,

Jeff

Subject: Same experience 40 fold difference in speed!

Hi

First set JavaEnableJIT=1 in notes.ini to enable Just-In-Time compilation.

I have the same problems some Java agents and speed. Sometimes it just flies like a rocket and other times the same code moves like a snail…for no reason.

By turning on the profiler for the agent I can see the difference is 40 fold !!. That is a lot!

I do not at this moment have any idea why it is like that, but it seems like a bug.

brgds Jesper Kiaer

http://www.jezzper.com

Subject: RE: Same experience 40 fold difference in speed!

Thanks Jasper (for the response),

When you set the JavaEnableJIT=1, where do you go to look at the ouput? Will it dump to the Notes log or do you have to enter a particular console command?

Thanks again,

Jeff