Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Is the cache_size defined in the space schema in kb or bytes?

Hi, just a quick check if the <cache_size>60000</cache_size> for space is in kilobytes or bytes?

Thanks.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2897]{quote}

asked 2009-02-22 21:01:31 -0500

kianping's avatar

updated 2013-08-08 09:52:00 -0500

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

It is number of total space objects. Shay

answered 2009-02-22 23:03:11 -0500

shay hassidim's avatar
edit flag offensive delete link more

Comments

Thanks Shay,

Is the initial/max heap size definable in space schema? Or at Space level? Under Jdk1.5, in the GS-UI, SpaceNetworkView, u can view the Used Memory (MB) column. May i know the % shown is verified against the container or space memory allocation?

Currently, i am only able to configure the min/max heap size at the container through the setEnv.bat script "set EXT_JAVA_OPTIONS=-Xmx512m"

Regards, kian ping

Edited by: low kian ping on Feb 23, 2009 2:34 AM

kianping's avatar kianping  ( 2009-02-23 02:00:05 -0500 )edit

The initial/max heap size is not part of the space schema. You should specify these as the JVM –Xmx and –Xms parameters.

The info in the space browser is taken from the JVM JMX stats – so it is JVM stat. If you have multiple spaces running within the container these stats would be relevant for all of them.

If you are running in LRU mode and would like to have deterministic eviction behavior (have small amplitude with the memory usage) having the right cache_size would provide very smooth memory utilization. So the right way to configure the amount of memory to be used would be via both the space-config.engine.cache_size and space-config.engine.memory_usage.high_watermark_percentage (with the other relevant other memory_usage parameters) as a secondary memory control mechanism.

See more here: http://www.gigaspaces.com/wiki/displa...

Shay

shay hassidim's avatar shay hassidim  ( 2009-02-23 06:45:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-02-22 21:01:31 -0500

Seen: 53 times

Last updated: Feb 22 '09