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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:40:29+00:00 2026-06-17T01:40:29+00:00

Running my java application takes more memory on my new rhel62 machine. The same

  • 0

Running my java application takes more memory on my new rhel62 machine. The same program takes less memory on rhel55.

i wrote a very simple ‘HelloWorld’ java program, and run it. That too takes huge memory in rhel62. I am using Java_1.7 in both Rhel55 and Rhel62

import java.io.* ;
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
        Console console = System.console();
        String input = console.readLine("Enter ...:");
        System.out.println(input);
    }
}
$ /usr/java/jdk1.7.0_09/bin/javac hello.java
$ /usr/java/jdk1.7.0_09/bin/java HelloWorldApp
Hello World!
Enter ...:

Java application on top command

rhel62 :
Linux qaatestp 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5069 qaatestp  20   0 5557m  18m 7604 S  0.0  0.1   0:00.11 java
31719 qaatestp  20   0  105m 1972 1468 S  0.0  0.0   0:00.35 bash

rhel55 :
Linux qa2testp 2.6.18-238.5.1.el5 #1 SMP Mon Feb 21 05:52:39 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
18065 qa2testp  17   0 2400m  14m 7508 S  0.0  0.2   0:00.22 java
17244 qa2testp  15   0 66196 1784 1232 S  0.0  0.0   0:00.81 bash

I have no idea why this behaves this way in rhel62, because of this i am facing unnecessary problems. Is this Linux rhel6.2 issue ? or Java issue? or No issue? 🙂

I thought of raising this here before asking the support teams. Please give your 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-17T01:40:30+00:00Added an answer on June 17, 2026 at 1:40 am

    Thanks Very much for reply.

    This is because of memory allocation changes made on Rhel6. RHEL6 is allocating separate chunks of memory for each thread. In multicore processor, this will improve the performance, with memory overhead.
    There is an environment variable MALLOC_ARENA_MAX, setting this value as 1 is reducing this memory allocation. Please see the following link for more details.

    Linux glibc >= 2.10 (RHEL 6) malloc may show excessive virtual memory usage

    Thanks

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

Sidebar

Related Questions

I am running a java application from the console on an HP-UX machine. In
I have an application written on Java running on the machine (Linux/Windows). I want
I have an Java application running in JBoss in which I have enabled JMX
In Java, assume 3 java application running. a) Firstly, My application running b) Secondly,
We have a java application ( Atlassian Bamboo) running on port 8085 on Windows
I have a Java application which is running as non root mode. My App
We have a java application which run as server running on a remote windows
I am in the process of creating a java application that will be running
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I'm working on a Swing application (currently running on Java 1.6 update 11) which

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.