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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:08:27+00:00 2026-06-14T19:08:27+00:00

We have a 32-bit process A and it has to start another java jar

  • 0

We have a 32-bit process A and it has to start another java jar which has to run in 64 bit process. They communicate though a socket. This system works fine.

But in some rare cases we see the second process (B) hangs until we close the process (A) that launches it. While I was debugging this issue I wanted to read input stream of process B to see what messages are being outputted and seen reading from the input stream of process B solved the issue. So we span up a dumb thread which solely reads input stream of the process B and everything worked fine.

The issue was very weird but we had to move on. We thought it has something to do with console output buffer size or something like that. But we have seen this issue appeared on a newly installed machine although we read the input stream of the started process (B).

Although it happens very rare we want to be absolutely sure why this happens. What might be the reason? Is there a default setting that we are not aware of? Have you encountered such a case before?

Quick summary:

  • process A runs in a 32-bit process
  • process B runs in a 64-bit process
  • process A starts process B by issuing Runtime.exec by pointing to the 64-bit javaw.exe
  • process B hangs until we close process A
  • we see process B appears in the task manager
  • 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-14T19:08:28+00:00Added an answer on June 14, 2026 at 7:08 pm

    You need to consume both the stadout and stderr from a spawned process, and you need to do this simultaneously, otherwise the spawned process can block waiting for the parent process to consume that output.

    More info here.

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

Sidebar

Related Questions

I have a process users must go through on my site which can take
This question has two aspects, both related to indices. I have a dataset with
I am using Named Pipes to communicate with a process. I have been able
i have bit of code that causes an underflow: var t1, t2, delta: DWORD:
I have a question regarding how initialization vector works on cryptography. I have bit
Have a bit of confusion here. I added a few objects from a class
I have a bit of a theoretical question, however it is a problem I
I have a bit of code that fits theoretical prediction to experimental data, and
I have a bit of a problem that I can't seem to code my
I have a bit of a strange problem. I have a music app that

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.