Page 1 of 1

Can't run site/admin at the same time

Posted: Thu Nov 29, 2012 8:32 pm
by needinfo
Hello,

I have everything deployed on a remote server and I started jamming into a bug of some sorts:

Site runs perfectly etc. but when I start Admin, the Site part automatically exits with message

[artifact:mvn] Java Result: 137.

Same goes vica versa.

It all runs smooth on my local machine.

Any ideas?

Re: Can't run site/admin at the same time

Posted: Fri Nov 30, 2012 11:24 am
by phillipuniverse
Running both applications at the same time can be pretty memory intensive. Both applications together use ~1.2GB of memory (deployed in Tomat 7). If you look at DemoSite, we have actually included an artifact called 'combined' which is to handle combining the site and admin into a single war. This reduces the memory footprint by about 20%.

Basically, this looks like Java doesn't have enough memory to run.

Re: Can't run site/admin at the same time

Posted: Fri Nov 30, 2012 11:31 am
by phillipuniverse
Another note on running combined vs site and admin separately. Note that 'combined' has its own web.xml and applicationContext-security.xml. If you have made any changes to those files in either 'site' or 'admin', you will need to move those changes into the 'combined' artifact as well.