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 9054027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:34:41+00:00 2026-06-16T13:34:41+00:00

I am writing a small android game, and whenever I first ran, everything worked

  • 0

I am writing a small android game, and whenever I first ran, everything worked fine, but it will randomly hang and start spamming this endlessly in eclipse’s LogCat

12-30 12:40:05.344: D/dalvikvm(22831): WAIT_FOR_CONCURRENT_GC blocked 5ms
12-30 12:40:05.383: D/dalvikvm(22831): GC_CONCURRENT freed 511K, 34% free 2374K/3552K, paused 1ms+2ms, total 14ms

I know it has something to do with garbage collecting, but whenever I force stop the app(the only way to close it) I lose around 5-10mb of available ram until I restart the device. does anyone know what this means and how to prevent it?

the device I am using is a verizon galaxy nexus running android 4.2.1(Cyanogenmod 10.1) and sdk/target version at 3.2(api level 13). Thanks!

  • 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-16T13:34:42+00:00Added an answer on June 16, 2026 at 1:34 pm

    You’ll be able to Google your way into a much more detailed description, but basically it just means you’re making the garbage collector work very hard.

    Programming a game is different from programming a ‘normal’ app: your game probably loops countless of times.
    As a result of this even a tiny memory leak can grow quickly to a real problem.

    Furthermore, GC is normall your biggest friend, in gaming it is pretty much one of your enemies. Every GC run creates a little freeze since it ‘stops the world’.

    I’d suggest you continue your search in specific gaming programming tutorials and how to work against the GC in those.

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

Sidebar

Related Questions

I am writing a small Android game using a SurfaceView class. The outline of
I am writing a small game for Android. The game is drawn on a
I'm writing my first ever Android game. It's a simple card game where player
I am writing a bouncing ball game in Java for Android phones. Everything seems
I'm writing a small android app which will fetch json file content through an
I'm writing a small Android game and am using the WebView for reading an
So I've been writing small android applications and want to start writing bigger apps
I'm writing a game for android, and whenever the player dies, he should get
I am experimenting with writing a small game engine for Android using OpenGL ES.
In an effort to learn Android I am writing a small app. The first

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.