I've got other ideas, for example, I could split Vosao in two modules, one that is light and customer facing, another one to handle the /cms part.
https://github.com/GoogleCloudPlatform/appengine-modules-sample-javaAt the end of the day, making apps run with acceptable performances on GAE/Java is bloody hard.Emanuele
Programming for App Engine is a pain in the ass, especially in Java.It doesn't really scale very well. Instead it wastes a lot of resources (the instance) waiting for data to come back from the network.One cannot just program as they would normally do on a server. Everything has to be stripped down to the bare essential.The Hello World servlet they provide as an example takes 2s to warm up and return. That's the bottom line and if would achieve similar performances, then new instances could spin up and serve requests in a barely acceptable way.
hi emanuele
the appengine startup times/hardedeadline problem is well documented.
there are many causes but normally due to classpath loading/scanning.
typicallly things like spring/hibernate/jsf due classpath
scanning/loading on startup.
It is a problem with appengine that can limited certain 3rd party packages.
1. if I remove all jar files from the war/WEB-INF/lib, the warmup time is about 2.3 seconds.
2. if I put the only the core app engine sdk jar file in war/WEB-INF/lib, but doesn't reference it, the warmup time is about 2.9 seconds.
3. if I put "DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();" in the jsp file but do nothing eslse, the warmup time is 3.5 seconds
4. if I put a query in the default jsp file, the warmup time is 4.7 seconds.
5. if I convert query result as list, the warmup time is 6 seconds.
the trunk version of vosao loads fast and easy as there are no clever
3rd party libs to scan.
> email to vosao-cms-development+unsub...@googlegroups.com.
Hi emanuele
If your start up time is 4secs then that is awesome.
I haven't checked my times for vosao but it I will report back.
Are your times on a real environment? There is always lots of variability on start up times with same code executing. It is after all a cloud experience.
My spring/jpa app was 30-60secs.
That was all thanks to spring and jpa scanning class path for configuration and the enormous amount of class loading. Even after tuning the config not to scan there was still masssive startup lag. Maybe there are other things involved also.
I only use paid instances on gae otherwise cold lag is a real problem. However I still get startup lag on a new instance but it is manageable with idle instance settings.
Good point about vosao using jabsorb which uses some introspect.
--
regards
Lucio Piccoli
To unsubscribe from this group and stop receiving emails from it, send an email to vosao-cms-develo...@googlegroups.com.