Managed VM compressed response issue

49 views
Skip to first unread message

Deepak Singh

unread,
Jul 19, 2015, 4:08:29 PM7/19/15
to google-a...@googlegroups.com
Hi All,

I have a hosted application on Google app engine. Running fine. It serves the response in gZip format.

It has a high CPU consumption so i am testing it on Managed VM as well. It runs fine on managed VM but the problem is that the response is not compressed. I tried few filters including webutilities-0.0.7 but still no luck.

response.setContentType("application/x-java-serialized-object");
response.setHeader("Content-Encoding", "gzip");
GZIPOutputStream gos = new GZIPOutputStream(response.getOutputStream());
ObjectOutputStream oos = new ObjectOutputStream(gos);
oos.writeObject(rs);
gos.finish();
oos.flush();
oos.close();

I am sending a serialised object in compressed form. The above code works fine on app engine.

Please help

--
Deepak Singh

Deepak Singh

unread,
Jul 20, 2015, 11:11:04 AM7/20/15
to google-a...@googlegroups.com
any help pls.
--
Deepak Singh

Nick (Cloud Platform Support)

unread,
Jul 20, 2015, 2:18:36 PM7/20/15
to google-a...@googlegroups.com, Deepak Singh
Hi Deepak,

Google Groups isn't the place to post specific technical issues, as this forum is meant more for general discussion of the platform and services. 

If you believe you've found an issue with the platform itself - and in this case your issue does appear to qualify for this description - then you should open a public issue tracker issue with enough detail to reproduce the issue on our side, or if possible, an attached app that can be used to directly observe the behaviour. 

Your issue report has a decent amount of information, although providing not just snippets of code but a minimal reproducing app is best.

If you would like to open a thread in this forum discussing the platform or services in more broad terms, starting a discussion that would be useful for other users to join in to, feel free to do so.

Have a great day!

-- Nick

Deepak Singh

unread,
Jul 20, 2015, 3:35:11 PM7/20/15
to google-a...@googlegroups.com
Hi Nick,

Could you pls tell me the best place to discuss the issue before adding  an issue in public issue tracker ?

Deepak

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/4c5c6686-9ccf-41fd-816f-d3b9033cf1db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Deepak Singh

Nick (Cloud Platform Support)

unread,
Jul 20, 2015, 3:40:10 PM7/20/15
to google-a...@googlegroups.com, Deepak Singh
Hi Deepak, 

As I said, it seems as though the issue is clear enough to post an issue to the public issue tracker. You used the same code successfully for gzip on App Engine, but Managed VMs seems to throw out the header and serve an uncompressed response. If you'd like to discuss the issue in a way which is general enough to be useful in this forum, you could ask some broad but still focused questions about how the Managed VM serving architecture works, I suppose.

However, as I said, it seems you shouldn't need to do anything else but add some more details when you create the issue tracker issue.
Reply all
Reply to author
Forward
0 new messages