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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:25:02+00:00 2026-06-09T20:25:02+00:00

I am running a simple hello world web server project with maven, jetty, scala,

  • 0

I am running a simple “hello world” web server project with maven, jetty, scala, scalate, and scalate-ssp.

running the project with “mvn jetty:run”, takes 120Mb of RSS memory (ps -o rss,etime,pid,command).

However, running the exact same project on another computer, takes 480Mb of RSS memory.

first computer, mac: uname -a

Darwin mac.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

second computer, linux: uname -a

Linux linux.local 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux

what can explain this difference?

I have a memory-limited environment. how to decrease the RSS memory for the second computer?


Update from the answer of joakime:

Mac:

Java HotSpot(TM)
Java version: 1.6.0_33, vendor: Apple Inc.
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)

Linux:

OpenJDK
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)

Runtime.getRuntime().maxMemory() for mac was 120Mb, and for linux was 3500Mb.

Now I run with:

export MAVEN_OPTS="-Xmx256m -Xms10m"; mvn jetty:run

With this, on linux Runtime.getRuntime().maxMemory() gives now 227Mb (instead of 3500Mb).

However, executing “ps -o rss,etime,pid,command” still gives 430Mb of RSS memory.
I need RSS memory to be less than 250Mb.

How to achieve this?

  • 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-09T20:25:03+00:00Added an answer on June 9, 2026 at 8:25 pm

    Without more information, I’ll speculate that you have different JVM implementations (1 linux, 1 OSX) and have likely not specified the upper bounds of memory for those JVMs.

    Note that different JVMs will likely specify different upper memory limit defaults.
    Even the same JVM version by oracle will specify different maximum memory limits differently on different OS/hardware combinations.

    There’s a prior question about this topic that might help: What is the default maximum heap size for Sun's JVM from Java SE 6?

    Also, maven versions differ on what plugin versions they will use by default as well, you could have a difference that is entirely within the scope of maven + its plugins.

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

Sidebar

Related Questions

I made the simple hello world NODEJS Server. I have a enyo web service
I've been trying to get a simple hello world web app running on Sinatra.
I am having problem when running my simple JSF hello-world like web app. The
I'm working on a simple hello world TCP/IP client server app in C# and
Trying to run a simple Hello World C++ program on Eclipse (Galileo) CDT plugin
I have a simple web app which displays a simple hello world . I
I have a problem running a simple Hello-world program in C++ on my Windows
I'm running Python 3.2 on Windows. I want to run a simple CGI server
I'm working on a project where a Windows web server running PHP is communicating
Heroku is fantastic for prototyping ideas and running simple web services, I often use

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.