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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:44:20+00:00 2026-05-24T18:44:20+00:00

I have a j2ee application and inside which i have a class 1 which

  • 0

I have a j2ee application and inside which i have a class 1 which starts multiple threads T1 ,T2 ,T3.Now i also have a webserrvice.Now I want that that my threads T1,T2,T3,should run indevinitely till the webserver is stopped or my application is undeployed.My Thread internally connects to some urls and perform some action and other taks related to db.

1)Now The code that starts my threads is called from servletContextListener.I see a warning on tomcat console that it may cause a memory leak.will there be any problem?

2)From my Threads i connect to urls on other server on porrt 80.Will this clash with my local port?

  • 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-24T18:44:21+00:00Added an answer on May 24, 2026 at 6:44 pm

    I am 95% certain that any thread long running or not can experience memory leaks. Memory leaks have to do with GC and finalization not threads.

    just because you target your connection to port 80 does not mean that you initiate your comm from port 80. because the server always has to respond on port 80, and you can only either listen or send on port 80, not both. the transmission has to come from some other port. So no it will not clash with your local port.

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

Sidebar

Related Questions

I have about 10 different entities in my J2EE application that right now share
I have a j2ee web application which uses log4j for logging. I want to
I have a J2EE application that has a lot of reports, the situation now
I have J2EE web application which uses JSF framework. Now I am trying to
I have a J2EE application with a web service which goes like http://servername/service?task=getFile&id=25 How
So we have our J2EE application using Log4j like this public class CustomerController {
I have an old J2EE application (J2EE 1.3), which packages into an EAR, and
I have a j2ee web application running on Spring framework. I want to implement
I have a J2EE application that receives and process messages (events). These messages contain
We have a j2ee application running on Jboss and we want to monitor its

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.