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

  • SEARCH
  • Home
  • 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 9170849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:05:01+00:00 2026-06-17T16:05:01+00:00

Actually I am getting 25 thousand of JSON objects from a web service and

  • 0

Actually I am getting 25 thousand of JSON objects from a web service and i am using Jackson to parse them and when i am trying to have that in collection(HashMap, LinkedHashMap, Array List, Map) and unfortunately using all of them i am running into “Out Of memory Exception in Android”.. Can someone experimented this before with huge objects for my case it may go upto 50 thousand objects at maximum. so how do i handle in a better way. I have tried to create some customized objects by extending the above collections but i am not quite well enough to get that out. Please any suggestions.

  • 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-17T16:05:01+00:00Added an answer on June 17, 2026 at 4:05 pm

    One technique for reducing the memory foot print:

    I’ll talk about strings, but the following holds for other objects too.

    To prevent holding the same (.equals) object in multiple instances, do something like

    private Map<String, String> sharedStrings = new HashMap<>().
    
    public void shareString(String s) {
        String t = sharedStrings.get(s);
        if (t == null) {
            t = s;
            sharedStrings.put(t, t);
        }
        return t;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using boost.log. Apart from the extreme amount of agro actually getting and building
Anyone have any experience yet getting Radiant CMS extensions to actually make it onto
I need to getting the client ip address using javascript.Actually,our connection provider ip is
I have tried just about everything for getting the Kinect for Windows to actually
Hi I'm getting strange feedback from the feedback sandbox server. Actually there should be
I have a small issue actually getting variable to show - let alone how
i have a problem with getting content from a XML into a mysql database.
I'm using _world->step(dt,5,5) to detect the collision system. So collision is actually getting handled
I'm trying to create a search form that posts the results queried from a
Ok so I have my apps, that takes requests from root / Almost everything

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.