ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to clear MbGolbalMap,with out stop broker

Post new topic  Reply to topic
 How to clear MbGolbalMap,with out stop broker « View previous topic :: View next topic » 
Author Message
mahesh2069
PostPosted: Tue Aug 13, 2013 2:30 am    Post subject: How to clear MbGolbalMap,with out stop broker Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi All,

I want to clear MbGlobalMap , like Map , here no clear() method to clear() all elements from Map, In MbGlobalMap how clear global map grid. Is it possible to clear Global Map with out Stop Broker?

In JCN ,how to clear MbGlobalMap ?
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
Simbu
PostPosted: Tue Aug 13, 2013 3:16 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

I found this in WMB 8.0.0.2 Infocenter which removes the data using session policy automatically.

Quote:
Removing data from the global cache

Specify when data is removed automatically from the global cache.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/bc23801_.htm
Back to top
View user's profile Send private message
Simbu
PostPosted: Tue Aug 13, 2013 3:25 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Also you can use mqsicacheadmin to clear the cache.

I got the below from one presenation on "Big Data Sharing with the Cloud - WebSphere eXtreme Scale and WebSphere Message Broker Integration"

Quote:
• Clear out data when you are finished! (Using remove() )
• clear() is not supported – but can be achieved administratively using mqsicacheadmin


The following example clears all data from the map named "myMap":
Code:
mqsicacheadmin brokerName -c clearGrid -m myMap


clearGrid

Clears all data from the specified map in the embedded cache. This command has immediate effect and does not require a broker restart.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 13, 2013 3:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Simbu wrote:
Also you can use mqsicacheadmin to clear the cache.

I got the below from one presenation on "Big Data Sharing with the Cloud - WebSphere eXtreme Scale and WebSphere Message Broker Integration"

Quote:
• Clear out data when you are finished! (Using remove() )
• clear() is not supported – but can be achieved administratively using mqsicacheadmin


The following example clears all data from the map named "myMap":
Code:
mqsicacheadmin brokerName -c clearGrid -m myMap


clearGrid

Clears all data from the specified map in the embedded cache. This command has immediate effect and does not require a broker restart.


It's amazing what knowledge can be obtained from reading ! That's a great tip Simbu. Thanks for posting.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Tue Aug 13, 2013 3:32 am    Post subject: Re: How to clear MbGolbalMap,with out stop broker Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mahesh2069 wrote:
Hi All,

I want to clear MbGlobalMap , like Map , here no clear() method to clear() all elements from Map, In MbGlobalMap how clear global map grid. Is it possible to clear Global Map with out Stop Broker?

In JCN ,how to clear MbGlobalMap ?


You really need to do your own homework.

http://tinyurl.com/mqxn9tr

Google is a great resource. You should learn to use it. Please don't post here until you do. Simbu was gracious enough to provide you the answer, but you should be self-sufficient and not need people to run Google searches for you.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbn23786_.htm

Quote:
mqsicacheadmin command
The mqsicacheadmin command provides information about the global cache that is embedded in a broker. For example, you can find out the size of a map and list the hosts that are participating in the cache. You can also use this command to clear data from a map. See Running the mqsicacheadmin command.

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kash3338
PostPosted: Tue Aug 13, 2013 3:35 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Simbu wrote:
Also you can use mqsicacheadmin to clear the cache.

I got the below from one presenation on "Big Data Sharing with the Cloud - WebSphere eXtreme Scale and WebSphere Message Broker Integration"

Quote:
• Clear out data when you are finished! (Using remove() )
• clear() is not supported – but can be achieved administratively using mqsicacheadmin


The following example clears all data from the map named "myMap":
Code:
mqsicacheadmin brokerName -c clearGrid -m myMap


clearGrid

Clears all data from the specified map in the embedded cache. This command has immediate effect and does not require a broker restart.


This is a very useful quote Simbu. Thanks for this!
Back to top
View user's profile Send private message Send e-mail
mahesh2069
PostPosted: Tue Aug 13, 2013 3:46 am    Post subject: In JCN ,can we remove all elements in MbGlobalMap ? Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi Simbu,

I already use that remove method for particular element in MbGlobalMap ,and I want to clear all elements in MbGlobalMap with in JCN .
Shall I use remove for all elements ,Is there any alter native in JCN to remove all elements in MbGlobalMap Grid.

Using command line also I tried , it's working fine. I need to know how to clear bulk of key-value pairs from MbGlobalMap with out using Command line. In JCN is it possible to remove all elements with out iterating.
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 13, 2013 3:48 am    Post subject: Re: In JCN ,can we remove all elements in MbGlobalMap ? Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mahesh2069 wrote:
Hi Simbu,

I already use that remove method for particular element in MbGlobalMap ,and I want to clear all elements in MbGlobalMap with in JCN .
Shall I use remove for all elements ,Is there any alter native in JCN to remove all elements in MbGlobalMap Grid.

Using command line also I tried , it's working fine. I need to know how to clear bulk of key-value pairs from MbGlobalMap with out using Command line. In JCN is it possible to remove all elements with out iterating.


So you are asking how to shell out to an OS shell from Java? You don't already know how to do this?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Tue Aug 13, 2013 3:52 am    Post subject: Re: How to clear MbGolbalMap,with out stop broker Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

lancelotlinc wrote:


http://tinyurl.com/mqxn9tr



Please don't use tinyurl's. I know of at least three corporate networks that block all and any attempt to use them.
Until you click on them you do not have any idea where you will end up. You could end up on a site where just viewing the contents could send you to jail.

This site is read all over the world. What might be ok in the USA can and is against the law in many other places.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 13, 2013 4:02 am    Post subject: Re: How to clear MbGolbalMap,with out stop broker Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

smdavies99 wrote:
lancelotlinc wrote:


http://tinyurl.com/mqxn9tr



Please don't use tinyurl's. I know of at least three corporate networks that block all and any attempt to use them.
Until you click on them you do not have any idea where you will end up. You could end up on a site where just viewing the contents could send you to jail.

This site is read all over the world. What might be ok in the USA can and is against the law in many other places.


Ok, here's the full URL:

https://www.google.com/webhp?source=search_app#bav=on.2,or.r_cp.r_qf.&fp=6e1d72aaf09fa785&q=%2Fsite:publib.boulder.ibm.com%2Finfocenter%2Fwmbhelp%2Fv8r0m0+clear+global+cache&safe=off
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to clear MbGolbalMap,with out stop broker
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.