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

Ask Your Question

Gigaspaces write takes a long time


I am developing a real time application and we are using the a clustered space to store and read our information. The writes takes in average 3 ms and in worst case it takes 10 seconds.

I turned on the dynaTrace tool to see what is happening in worst case. I see the following call stack is the contributor "DefaultGigaSpace -> AbstractSpaceProxy -> FileDispatcherImpl" and I also see 100% I/O. What is the FileDispatcherImpl doing that causes 100% I/O?

Is there a way to avg. improve the write performance?

Thanks, Ali h4. Attachments

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

asked 2013-07-11 13:25:46 -0500

salemi 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

Use the ONE_WAY WriteModifier. Does this speed up write performance?


answered 2013-07-11 14:55:40 -0500

shay hassidim gravatar image
edit flag offensive delete link more


I changed our code yesterday to use ONE_WAY and made some difference but not significant.


salemi gravatar imagesalemi ( 2013-07-12 09:57:58 -0500 )edit

can you paste your code please?
How's your Space class looks like? Does it have big collections?


shay hassidim gravatar imageshay hassidim ( 2013-07-12 11:08:04 -0500 )edit

We have multiple classes. They are just basic classes and they don't have any collection in them. See attached class!


salemi gravatar imagesalemi ( 2013-07-12 12:05:02 -0500 )edit

I like to use writeMultiple method but I need a class that collect all the messages before I can use the write multiple method.
I was wondering if GigaSpaces provide a class to collect messages and then writes all the collected messages in a timely fashion or based on the count of messages to GigaSpaces using writeMultiple?


answered 2013-07-16 13:13:41 -0500

salemi gravatar image
edit flag offensive delete link more

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: 2013-07-11 13:25:46 -0500

Seen: 210 times

Last updated: Jul 16 '13