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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:27:06+00:00 2026-05-23T10:27:06+00:00

I have 3 servers with processes that require all the CPU they can get.

  • 0

I have 3 servers with processes that require all the CPU they can get. I let these processes write their standard output to a file

./run.sh > run.log

Would this writing slow down the process? (the ./run.sh script starts eg. a Java program and sometimes a Ruby program)

Now I want to create a web-interface that would display the output from the script while it is running. I can imagine writing a php script which refreshes every 5 seconds, creates a SSH connection to the server does and gets the run.log file.

But wouldn’t that interfere with the process or slow it down? It is really crutial that the server is able to use as much of it’s power as possible. Or are there better ways to handle this? Instead of creating an SSH connection every 5 seconds, maby a persistent connection and update with Ajax? (security is not a requirement)

  • 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-23T10:27:07+00:00Added an answer on May 23, 2026 at 10:27 am

    Would this writing slow down the process? (the ./run.sh script starts eg. a Java program and sometimes a Ruby program)

    Maybe; if the process writes a lot of data, it can easily slowdown the process, because likely the process will be writing synchronously to the disk. Otherwise, you don’t have to worry.

    An alternative would be having a setup where the script sends the output to the machine with the web application via some kind of message service. This would avoid polling the server; whether it would be more efficient depends on the details.

    A simple an efficient mechanism would be forwarding stdout to a UDP socket and have the web application listen and store temporarily those messages in a circular buffer.

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

Sidebar

Related Questions

I have a defined number of servers that can locally process data in their
i have portions of my program that require administrative access (settings that affect all
I have several server processes that once in a while respond to messages from
I have a server application that receives information over a network and processes it.
A single Biztalk Server can have multiple Host processes. Is it possible to create
I have a process that requires a rollback of all updates and inserts should
I have a system in which different server processes are handling requests passed as
Scenario I have a bunch of processes running on a server as part of
I am in the process of retiring legacy Microsoft SQL Servers and I have
I have a directory on my site that I've implemented PEAR's Auth to run

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.