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

Ask Your Question

Space Dump for post analysis of bugs during development

It would be helpfull for developers to have a dump of the space when analysing a bug which was reported from a tester.

Therefor I am currently investigating how I can create a dump of the "current" state of a clustered space to give our testers a simple tool which they can use to create a space snapshot whenever they create a bug report. I few things to note:

  1. We have only a couple of MBytes of data in the whole cluster (max 15MB)
  2. Some of the objects in the space are changed very often (every ms) and new ones are written very often (every ms)
  3. This is only necessary in the development environment, a performance degration when creating this dump is ok.
  4. This snapshot is used to later analyse a problem so it should by as accurate as possible while not affecting the behavior of the system too much.

My first try was as simple as:

Object[] objects = clusteredSpace.readMultiple(new Object(), ReadModifiers.EXCLUSIVE_READ_LOCK);
for (Object object : objects) {

Which actually got me the output I expected (I also think its quite consistent).
This is a preview from what i got:


My question is:
Is there a better way of doing this? or is there already something like this in the management UI?
Is my current approch flawed? or does it really give me a snapshot of the complete space cluster at a given point in time?

asked 2015-02-20 09:44:26 -0500

leozilla gravatar image

updated 2015-02-20 11:01:37 -0500

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-02-20 12:30:55 -0500

jb gravatar image
edit flag offensive delete link more


This looks very promissing, i will try it out. Thanks.

leozilla gravatar imageleozilla ( 2015-02-26 04:35:04 -0500 )edit

The GS UI will allow you to export space data into CSV file.

Just run a query and click the export button. It will take you to a simple wizard that will export your data.

answered 2015-02-23 23:01:05 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Its not possible to run a query that matches all objects in the selected cluster. I would like to export all data in the cluster via one tool/script.

leozilla gravatar imageleozilla ( 2015-02-26 04:34:37 -0500 )edit

@shay hassidim: Is it possible to export the toString() representation of all objects in a specific cluster via the GS UI?

leozilla gravatar imageleozilla ( 2015-03-04 02:40:49 -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: 2015-02-20 09:44:26 -0500

Seen: 263 times

Last updated: Feb 23 '15