You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ar...@leroymerlin.fr on 2008/12/15 14:59:21 UTC

Problems with caching

Hello,
I am new to shindig (and opensocial development in general). We are
developing on our project various gadgets and features, and we are
running on issues with caching on development environment. We need to
restart the server in order for modifications on the gadgets XML or
features descriptors to take effect. 

Is there a way to tell shindig server  (java version) to reload
everything, orflush cache or whatever ? I must confess I do not have a
clear understanding of the archietecture of the whole thing.

Regards,
Arnaud BAilly



Ce message et toutes les pièces jointes sont établis à l'attention exclusive de leurs destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. L'internet ne permettant pas d'assurer l'intégrité de ce message, le contenu de ce message ne représente en aucun cas un engagement de la part de Leroy Merlin.


Re: Problems with caching

Posted by Kevin Brown <et...@google.com>.
2008/12/15 <ar...@leroymerlin.fr>

> Hello,
> I am new to shindig (and opensocial development in general). We are
> developing on our project various gadgets and features, and we are
> running on issues with caching on development environment. We need to
> restart the server in order for modifications on the gadgets XML or
> features descriptors to take effect.


The feature files require restarting. They're serving code.

Which "gadgets XML" are you referring to?


>
>
> Is there a way to tell shindig server  (java version) to reload
> everything, orflush cache or whatever ? I must confess I do not have a
> clear understanding of the archietecture of the whole thing.
>
> Regards,
> Arnaud BAilly
>
>
>
> Ce message et toutes les pièces jointes sont établis à l'attention
> exclusive de leurs destinataires et sont confidentiels. Si vous recevez ce
> message par erreur, merci de le détruire et d'en avertir immédiatement
> l'expéditeur. L'internet ne permettant pas d'assurer l'intégrité de ce
> message, le contenu de ce message ne représente en aucun cas un engagement
> de la part de Leroy Merlin.
>
>

Re: Problems with caching

Posted by ar...@leroymerlin.fr.
Hello all,
Thank you for your timely answers. I tried using JMX and yes, I have
access to ehCache MBeans, some of them have exposed methods. I will try
to play with it. As for the feature.xml file, I notice this need
restarting.

As for the "gadgets XML" file, I am referring to the module file. I am
investigating the issue and will post maybeat a later time for further
inquiries.

thanks a lot again

Arnaud Bailly




Ce message et toutes les pièces jointes sont établis à l'attention exclusive de leurs destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. L'internet ne permettant pas d'assurer l'intégrité de ce message, le contenu de ce message ne représente en aucun cas un engagement de la part de Leroy Merlin.


Re: Problems with caching

Posted by Vincent Siveton <vi...@gmail.com>.
Hi,

2008/12/15 Ian Boston <ie...@tfd.co.uk>:
> The default caching mechanism is ehcache, which has a JMX interface, and I
> think its enabled.

Yes it is, see shindig.cache.ehcache.jmx.enabled in the shindig.properties
It is why I was thinking that jmx could be used.

> I am not certain if it has exposed functions to clear various caches, but if
> enabled it will have statistics.
>
> This is a level lower than the gadget server which may have other cache
> flush mechanisms more specific to gadgets, I notice Kevin as responded
> later.
>
> FYI, try running tomcat or jetty with  -Dcom.sun.management.jmxremote   and
> then connecting to the running tomcat with jconsole

Basically,
MAVEN_OPTS=-Dcom.sun.management.jmxremote
mvn -Prun
jconsole
See [1] for more information.

Cheers,

Vincent

[1] http://docs.codehaus.org/display/JETTY/Running+Jetty+with+jconsole


> If you look for the MBean tab you should see some ehcache beans somewhere in
> the tree.
>
> If you don't, shout, and we can enable JMX on ehcache.
> Ian
>
> On 16 Dec 2008, at 05:31, Vincent Siveton wrote:
>
>> Hi Arnaud,
>>
>> Le 15 décembre 2008 08:59,  <ar...@leroymerlin.fr> a écrit :
>>>
>>> Hello,
>>> I am new to shindig (and opensocial development in general). We are
>>> developing on our project various gadgets and features, and we are
>>> running on issues with caching on development environment. We need to
>>> restart the server in order for modifications on the gadgets XML or
>>> features descriptors to take effect.
>>>
>>> Is there a way to tell shindig server  (java version) to reload
>>> everything, orflush cache or whatever ? I must confess I do not have a
>>> clear understanding of the archietecture of the whole thing.
>>
>> I guess surely via jmx.
>>
>> Cheers,
>>
>> Vincent
>
>

Re: Problems with caching

Posted by Ian Boston <ie...@tfd.co.uk>.
The default caching mechanism is ehcache, which has a JMX interface,  
and I think its enabled.
I am not certain if it has exposed functions to clear various caches,  
but if enabled it will have statistics.

This is a level lower than the gadget server which may have other  
cache flush mechanisms more specific to gadgets, I notice Kevin as  
responded later.

FYI, try running tomcat or jetty with  - 
Dcom.sun.management.jmxremote   and then connecting to the running  
tomcat with jconsole

If you look for the MBean tab you should see some ehcache beans  
somewhere in the tree.

If you don't, shout, and we can enable JMX on ehcache.
Ian

On 16 Dec 2008, at 05:31, Vincent Siveton wrote:

> Hi Arnaud,
>
> Le 15 décembre 2008 08:59,  <ar...@leroymerlin.fr> a écrit :
>> Hello,
>> I am new to shindig (and opensocial development in general). We are
>> developing on our project various gadgets and features, and we are
>> running on issues with caching on development environment. We need to
>> restart the server in order for modifications on the gadgets XML or
>> features descriptors to take effect.
>>
>> Is there a way to tell shindig server  (java version) to reload
>> everything, orflush cache or whatever ? I must confess I do not  
>> have a
>> clear understanding of the archietecture of the whole thing.
>
> I guess surely via jmx.
>
> Cheers,
>
> Vincent


Re: Problems with caching

Posted by Vincent Siveton <vi...@gmail.com>.
Hi Arnaud,

Le 15 décembre 2008 08:59,  <ar...@leroymerlin.fr> a écrit :
> Hello,
> I am new to shindig (and opensocial development in general). We are
> developing on our project various gadgets and features, and we are
> running on issues with caching on development environment. We need to
> restart the server in order for modifications on the gadgets XML or
> features descriptors to take effect.
>
> Is there a way to tell shindig server  (java version) to reload
> everything, orflush cache or whatever ? I must confess I do not have a
> clear understanding of the archietecture of the whole thing.

I guess surely via jmx.

Cheers,

Vincent