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

Ask Your Question

problem with the size of the packaged program


I have a very simple java program that just writes some data to the space occasionally (no spring, using classes: UrlSpaceConfigurer, GigaSpaceConfigurer and GigaSpace).

The problem is the size of all jar files needed it for run. For XAP 7.0.0 it (correct me if I’m wrong) will be:

commons-logging-1.1.1.jar gs-openspaces-7.0.0.jar gs-runtime-7.0.0.jar spring-2.5.6.jar

so it is about 13mb of included jars - and that is really an issue for me. Could you tell me if there is a way to get this thinner ?

the program is send over the network and run remotely on foreign machine. no way to cache the jars.

thanks Witold

Edited by: Witold Zegarowski on Jul 22, 2009 4:22 AM

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

asked 2009-07-22 04:20:58 -0500

witold gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

Since u use openspaces API you have to use these jars.
You can place the libraries on S3 or use cloud front to boost the download time.

answered 2009-07-22 06:55:00 -0500

shay hassidim gravatar image
edit flag offensive delete link more


That is not a solution for me. I hardly believe that those all classes inside jars are needed (jmx, jms, spring, gui for gs?, examples benchmark, jdbc …, whole jinis) . I wish the GS had maven style sub-modules to pick exactly the one you need.

The solution I see is to investigate those jars and cut off the classes that probably be not needed…

Thanks anyway.

witold gravatar imagewitold ( 2009-07-22 08:57:18 -0500 )edit

I manage to cut down the total jars size to 1,5 MB by using staf found at: http://www.nakov.com/blog/2008/08/27/... and this little feeder works ; )

witold gravatar imagewitold ( 2009-07-22 16:46:05 -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: 2009-07-22 04:20:58 -0500

Seen: 50 times

Last updated: Jul 22 '09