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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:27:22+00:00 2026-05-26T15:27:22+00:00

I am trying to use Jetty with ant and for the most part I’ve

  • 0

I am trying to use Jetty with ant and for the most part I’ve followed the instructions outlined here. The webapp starts up ok but I still to make a few more adjustments:

  • Increase JVM memory (set the -Xms, -Xmx, and -XX:MaxPermSize)
  • Enable remote debugging

My ant task is defined as such:

  <target name="jetty" depends="make-webapp">
    <taskdef resource="tasks.properties" loaderref="jetty.loader">
      <classpath>
        <fileset dir="jetty-lib/">
          <include name="eclipse-jdt-core-3.1.1.jar" />
          <include name="jetty-6.1.26.jar" />
          <include name="jetty-ant-6.1.26.jar" />
          <include name="jetty-naming-6.1.26.jar" />
          <include name="jetty-plus-6.1.26.jar" />
          <include name="jetty-util-6.1.26.jar" />
          <include name="jsp-2.1-jetty-6.1.16.jar" />
          <include name="jsp-api-2.1-glassfish-9.1.1.B51.25.p1.jar" />
          <include name="jsp-2.1-glassfish-9.1.1.B51.25.p1.jar" />
          <include name="servlet-api-2.5-6.1.5.jar" />
        </fileset>
      </classpath>
    </taskdef>

    <mkdir dir="target/work" />
    <jetty tempDirectory="target/work">
      <webApp
        name="myapp"
        warfile="target/myapp"
        contextpath="/myapp" />
    </jetty>
  </target>

target/myapp has everything it needs including the WEB-INF/lib and WEB-INF/classes folders.

So how can I increase memory and enable remote debugging with this set up?

  • 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-26T15:27:22+00:00Added an answer on May 26, 2026 at 3:27 pm

    This might answer your question: http://ptrthomas.wordpress.com/2006/10/10/how-to-start-and-stop-jetty-from-ant/

    Use jvmarg to put the required memory and remote debugging settings.

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

Sidebar

Related Questions

I'm trying to use Maven, Jetty and HtmlUnit to test a webapp written using
I am need paint my image. I'm trying use JQuery in here this link:
I'm trying to use Jython (embedded) in a Jetty server (all through Maven) to
I am trying to use Selenium RC but i keep getting this error whenever
I am trying to configure Jetty (via the jetty-maven-plugin) to use client certificates. I
I'm trying to use JODConverter on top of jetty and sinatra. Whenever I fire
I am trying to use the transparent proxy provided by jetty. This is my
I am trying to configure cruisecontrol to use Tomcat rather than Jetty as its
I am trying to use the metrics-jetty project from Coda Hale: http://metrics.codahale.com/manual/jetty/ The thing
I am trying use std::copy to copy from two different iterator. But during course

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.