Compiled process file size is too big (*.bar)

1
0
-1

I have 2 Bonita installations. One (1) has only one process in it, the other one (2) has 16. When I compile these processes, the (1) file size is around 5MB, the (2) is around 20MB.

It doesn't matter the size of the diagram for (2), the size is always huge. When I see the files on each .bar, the (2) has a huge file called providedscripts.jar, which inside has 7300+ .class files.

How can I reduce the file size of the compiled .bar? Why is it that the (1) is a lot smaller than (2) for same-sized processes?

Thanks in advance!

Comments

Submitted by Sean McP on Wed, 03/04/2015 - 08:01

Have you included all JARs in the build (export) by mistake? providedscripts.jar on my machine is only 24KB, even if it where included 16 time it wouldn't make it that big. Have you tried breaking the diagram down to smaller diagrams, say 8 each (2), 4 each(4) etc. maybe you will see a pattern of why this is happening.

Submitted by epfalcon on Wed, 03/04/2015 - 16:26

Hi Sean McP, thanks but what do you mean with the export? I compile by going to Server -> Compile... on the menu. Then I don't have any option about included jars.

Compile menu Am I missing something? Thanks!

Submitted by romain.bioteau on Sat, 03/07/2015 - 14:49

Can you provide what kind of classname do you find in the providedscript.jar please. It looks like a bug to me as this jar should only contains a few provided library.

Thanks

1 answer

1
0
-1

The size of the file is directly associated with the number of steps you have in each process. There is no way to reduce the file size of the compiled .bar without reducing the number of processes.

Comments

Submitted by epfalcon on Wed, 03/04/2015 - 16:28

What do you mean? Reduce the number of processes or did you meant tasks?

Notifications