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

Ask Your Question

GSM/GSC cache?

I'm not sure what's going on, but it seems there there is a cache for PUs in either gsm that deployes it or the gsc. When I run a PU and then later change code (for debugging purposes) and either redeploy the pu without shutting down gsm/gscs, I don't get the latest changes, though the new pu is updated in the deploy directory during the build.

If there is a cache, is there a way to disable it for development?


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

asked 2008-03-20 14:38:01 -0500

isterin gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

Hi Ilya

Can you please try to use undeploy and then deploy instead of redeploy?

Thx, Uri

answered 2008-03-20 15:02:43 -0500

uri gravatar image
edit flag offensive delete link more


Uri, I have. I've undeployed and redeployed with same results.


isterin gravatar image isterin  ( 2008-03-20 15:07:57 -0500 )edit

Weird, it works this time around. I found this intermittently happening making me restart. If there is no deployment cache, then this might just be my imagination. I'll just have to closely look at the user case when this happens. I'm hoping it was just some deployment mistake I made.


isterin gravatar image isterin  ( 2008-03-20 15:21:47 -0500 )edit

It might be related to the fact that the JVM locks the classes and jars it uses on windows.

uri gravatar image uri  ( 2008-03-20 16:18:05 -0500 )edit

I have had the same problem a few times before. Every time I was changing something in my pu.xml I had to restart my gsm/gsc in order for the changes to work. I am also using a windows machine.

answered 2008-03-21 06:02:40 -0500

john gravatar image
edit flag offensive delete link more


Note that all classes defined in jar copied under 'shared-lib' folder will not be refreshed during a GSC lifetime because they are loaded in a ClassLoader common to all pu instances deployed in a specific GSC.

julieneluard gravatar image julieneluard  ( 2008-03-21 07:07:02 -0500 )edit

You all might be interested with 6.5 service reload feature: http://www.gigaspaces.com/wiki/displa... Shay

shay hassidim gravatar image shay hassidim  ( 2008-03-21 07:14:47 -0500 )edit

Ah, that's probably it. I had some issues with placing things in the lib dir before, so instead of figure it out, I took the easy way out and instead just placed all in shared-lib. Thanks, I'll try this out.


On Fri, Mar 21, 2008 at 8:07 AM, OpenSpaces Forums

isterin gravatar image isterin  ( 2008-03-21 10:34:51 -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


Asked: 2008-03-20 14:38:01 -0500

Seen: 129 times

Last updated: Mar 21 '08