Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9154061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:22:16+00:00 2026-06-17T12:22:16+00:00

How can we avoid OutOfMemoryError exceptions? The App Engine scheduler starts instances based on

  • 0

How can we avoid OutOfMemoryError exceptions?

The App Engine scheduler starts instances based on response times, but we need new instances started when an existing instance is exceeding its memory quota.

Our GAE instances handle multiple concurrent upload requests of varying file sizes. Whenever an instance handles too many concurrent uploads (that use heap space to copy uploaded bytes), the instance crashes with java.lang.OutOfMemoryError: Java heap space.

We’ve seen the other posts suggesting using of instance class with more memory or use of Backends.
But do we have to move to Backends to avoid this? Or is there a way the normal GAE instance scheduler can be encouraged not to send new requests to instances near memory limit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:22:17+00:00Added an answer on June 17, 2026 at 12:22 pm

    Use blobstore upload handler instead. The upload goes first through blob upload handler that strips blob data and saves it to blobstore, then your handler is called (and passed the saved blob key and other request data).

    This has two advantages:

    1. Your front end is not involved with handling blob data, so this should not produce OOM error.

    2. Uploads can be larger than 32Mb, which is otherwise limit for all frontend requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I avoid third party code from creating new threads, starting new VMs, or
How can I avoid NullPointerExceptions ? I have tried using try-catch blocks but that
How can I avoid that a user starts the same program twice? The current
why following code throwing ConcurrentModificationException? Josh Bloch can avoid ConcurrentModificationException. ArrayList<Integer> list=new ArrayList<Integer>(); list.add(100);
When you need to check/have combinations of array elements, how can you avoid nesting
I think I can avoid reinventing the wheel here. I need a Python script
I know in Jenkins you can avoid duplicate builds from running on top of
Is there any way I can avoid using array_flip to optimize performance. I am
I read of a useful trick about how you can avoid using the wrong
Can I avoid the open DataReader exception (There is already an open DataReader associated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.