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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:13:30+00:00 2026-05-26T06:13:30+00:00

C# dev here, forced to deal with Java… I am interfacing to a Java

  • 0

C# dev here, forced to deal with Java… I am interfacing to a Java Web Service, which is quite memory and CPU heavy. It .

Facts:

  • Runs under Tomcat and it’s Java 1.6.x
  • It’s all on Windows Server 2008 R2, x64 with 32 GB of RAM.
  • Tomcat is set to have 16GB of RAM
  • The Web Service typically consumes about 6.5 GB.

Every now and then, the web service is hit by Garbage Collection storms and it slows down processing (as determined by the vendor of the Java Web Service).

My question, not knowing much about Java GC, is why does GC even kick in if there is plenty of RAM available. Is there some setting which tells it to kick when there is little memory left?

My frame of reference is the .NET GC, which only kicks in when there is memory pressure.

  • 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-05-26T06:13:31+00:00Added an answer on May 26, 2026 at 6:13 am

    There are several garbage collection models available in Java. You can experiment to see which one has the least impact in your particular use case. See:

    • Java SE 6 HotSpot Virtual Machine Garbage Collection Tuning
    • “G1” Java HotSpot Garbage Collection
    • (Older, Java 5) Tuning Garbage Collection: Types of Collectors

    I was able to get much smoother / predictable performance in a web service a while back by selecting an appropriate collection model.

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

Sidebar

Related Questions

I am not an expert web-dev so please bear with me here. I would
I have a WCF service which works perfectly when deployed in our dev and
Yes we're talking about ASCII codes. My appologies I'm not the Delphi dev here.
I'm the second dev and a recent hire here at a PHP/MySQL shop. I
Dev-cpp comes with an example program Jackpot, which has a GetResults function in it:
Our Dev team had been developing enterprise web page more than 2 years ago.
i want to use alter table but the syntax posted here: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html is very
Here's my scenario: I've got a VisualSVN server on my main dev box @
I created a program using dev-cpp and wxwidgets which solves a puzzle. The user
My issue can be seen here: http://jasonnarciso.com/dev/cmwd/concrete-solutions/ Basically I have a very simple jquery

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.