MethodCache

Discussions about design and architecture principles, including native JADE systems and JADE interoperating with other technologies
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

MethodCache

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:35 am

by Torrie Moore >> Wed, 17 Sep 2008 1:51:05 GMT

I seem to recall that the recommended setting for the MethodCache setting in the INI file was now single but cannot find any reference to this in the documentation. Can anyone else comment on whether multiple or single is likely to be better?

Thanks

Torrie

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: MethodCache

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:35 am

by Dean Cooper >> Wed, 17 Sep 2008 11:11:17 GMT

There's a good discussion about method caches in Example 2 on page 22 of the Performance Analysis white paper:

http://www.jadeworld.com/downloads/jade ... alysis.pdf

That example concludes with:

"Different nodes or processes can and should use different settings. In the case of a high number of server threads in the above example, it may be a better option to use a single cache or smaller interpreter cache for the server node. While JADE 6.2 improves the efficiency with which it shares a single interpreter cache, if memory is not a constraint, it is still true that multiple caches perform better. While setting the method cache too small can result in excessive CPU consumption and poor response time, setting it too large can waste memory. The objective when tuning the interpreter cache is to hold your commonly used methods in cache. For overall system performance, memory is often better used in other caches rather than holding infrequently used methods in the interpreter method cache."

Also see the MethodCache option on page 71 of the JADE 6.2 JadeIni.pdf manual, where it says:

"Multiple caches result in faster load and execution of JADE methods, especially on Symmetric Multiprocessing (SMP) nodes. However, this improved performance is achieved at the expense of an increased usage of physical memory."

Dean.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: MethodCache

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:35 am

by Torrie Moore >> Wed, 17 Sep 2008 21:46:57 GMT

Thanks Dean.

I hadn't seen that white paper or the one on design http://www.jadeworld.com/downloads/jade ... Design.pdf. It's all good advice.

Cheers

Torrie


Return to “Design and Architecture”

Who is online

Users browsing this forum: No registered users and 14 guests