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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:36:19+00:00 2026-06-01T13:36:19+00:00

So, I am running a web server using embedded jetty and the maven app-assembler

  • 0

So, I am running a web server using embedded jetty and the maven app-assembler plugin. When I invoke the app-assembler app directly (running as root), the server starts up fine. Even with running under nohup, the web server starts up completely fine.

When I register the app-assembler script as an init.d script (Runlevels 235 / Start pri 98 / Stop pri 20 ), and run the init.d script using the service command, the web server hangs during startup.

The place where the application hangs is during classpath scanning in the Struts 2 convention plugin.

If I kill the web server using ‘kill -QUIT’, the code looks like it is stuck in Unix filesystem:

"main" prio=10 tid=0x09add800 nid=0xb33 runnable [0xb7361000]
   java.lang.Thread.State: RUNNABLE
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.isDirectory(File.java:754)

I have done some research, and it seems that there might be performance issues with NFS, java, and filesystem access.

The problem I am having is that we aren’t running NFS on our server, and that as far as I know we are running the app in the same way, by the same user.

Even when mimmicking the way service command works (running ‘env -i’ before the script starts), running the script directly doesn’t hang.

Looking for any advice or pointers to resolving this issue, or any way to work around it.

Update (4/8/12)

I am using Sun(Oracle) JDK 1.6.0_31

/usr/java/latest/bin/java -version  
java version "1.6.0_31"  
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)  
Java HotSpot(TM) Server VM (build 20.6-b01, mixed mode)
  • 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-01T13:36:20+00:00Added an answer on June 1, 2026 at 1:36 pm

    So, I figured out the issue. It looks like the issues I was seeing with the threads being stuck in filesystem operations, is due to recursive symlinks, that Java will follow indefinitely. Any scan from the root of a Unix system, following symlinks, should result in the same problem (100% CPU usage, and the file scanning hanging).

    The issue ultimately was that the service script ran from root, where calling the script directly started from my current working directory. I modified my startup script to move the root of the app assembled script before running, and all is well.

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

Sidebar

Related Questions

I've implemented a small web-sockets server using jetty, embedded in a larger java application.
Im running a long process using ProgressBox, and in that process im using System.Web.HttpContext.Current.Server.MapPath()
We have a Java EE-based web application running on a Glassfish app server cluster.
I'm using a ssh session on a Linux server to start an Embedded Jetty
I am running a web page from a server using webrick. How can I
I am using IIS 6 and IIS 7 as a web server. After running
I am running a web server using VB.net and I have a bunch of
I'm running a web server using XAMPP. I have using a web form to
A web server running a ASP.NET web service. To use the web service you
I've got a web server running IIS7 and I just updated to PHP 5.3.

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.