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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:15:06+00:00 2026-05-20T00:15:06+00:00

I am using Apache tomcat 7.02 as a server.I created an application using sphinx4

  • 0

I am using Apache tomcat 7.02 as a server.I created an application using sphinx4 and deployed it on apache tomcat server.Since this Sphinx4 application requires a lot of memory to execute.So for that purpose i alloted lot of memory as java Heap space(export CATALINA_OPTS=”-Xms1536m -Xmx1536m”). The Server on which i have deployed the server is a 64bit System with Debian Lenny on it,along with 2Gb of RAM. I created a Servlet,post data to it,get the results… When i run it for 10 users it takes about 8 minutes to process but if i run it for 100 users simultaneously,thn it shows this on tomcat status

Free memory: 37.0 MB Total memory:
1484.81 MB Max memory: 1484.81 MB

I also tried using System.gc(),but it did no gud.So is there any way through which i can check the memory status of JVM and free it when needed?

  • 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-20T00:15:07+00:00Added an answer on May 20, 2026 at 12:15 am

    You need to determine where resources are being using. I suggest you use a memory profiler and change the program to consume less memory.

    If you are using a 64-bit JVM you can use the -XX:+UseCompressedOops to reduce memory consumption (it uses 32-bit references instead of 64-bit references)

    EDIT: If you cannot tune your application it may be worth considering upgrading your server. A 24 GB server can cost around £1,800 and might allow you to scale to 1000 users without a code change. 😉

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

Sidebar

Related Questions

I've created a facebook application using flex. i tried server side both with apache-tomcat
I have a web service application that I deployed successfully on Apache Tomcat using
i am using netbeans 6.7.1 and apache tomcat server 7.0 but when in tried
I am developing a web application using Apache Struts, to be deployed on JBoss
I'm probably going to be using Tomcat and the Apache Axis webapp plugin, but
I am using Apache Axis to connect my Java app to a web server.
I have a web site using apache httpd as the server and mysql as
I was using MS-Access and Tomcat 6.0 previously for my application testing and it
I'm trying to create a web application using maven, tomcat and hibernate. Now I'm
I am trying to deploy a webapplication using maven cargo plugin into tomcat server.

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.