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

  • Home
  • SEARCH
  • 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 8429395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:19:30+00:00 2026-06-10T05:19:30+00:00

Gearman drives me crazy. I know all the tutorials all the presentations all the

  • 0

Gearman drives me crazy. I know all the tutorials all the presentations all the How tos but i’m not getting the Information i need.

My plan

I have one client who sends the jobs to the one job-server which is on the localhost. On this Server ( Home-Server ) runs the Website and the DB. Now i have two ( later more Worker-Server ) which we will call W1 and W2. At these Servers the hard work should be done and they should get the Jobs from the Home-Server where Gearman-Job-Server is installed. The Jobs are synchroun, which means that the client waits until the Tasks gets finished.

But I dont know how to do this. Every tutorial i find only told me how to set up Gearman when Clients and Workers are running on the same Machine.
On the Home-Server i installed gearman-job-server and the PHP gearman API with PECL.
At my clients which i handle with supervisord i call:

$gmc = new GearmanClient();
$gmc->addServer();

Which should send the Tasks to the localhost Job-Server which should get than to one of the two free Worker-Server. Right?

At the worker.php on thw Worker-Server W1 and W2 – which get also handled with supervisord – the following is written

$gmworker= new GearmanWorker();
$gmworker->addServer('Home-Server-IP', 4730);

Now the Worker-Server should get the Tasks from the Home-Server? Do I have to install gearman-job-server at W1 and W2 or is the PECL PHP Gearman API everything i need? And do i have to configure the Worker-Server?

I really hope you can explain these questions to me, that i can understand Gearman.

Some more Information:
When I tipe at Home-Server

gearmand -vvv -u root --listen=127.0.0.1

Output is just:

  • INFO Starting up
  • INFO Listening on 127.0.0.1:4730 (6)
  • INFO Creating wakeup pipe
  • INFO Creating IO thread wakeup pipe
  • INFO Adding event for listening socket (6)
  • INFO Adding event for wakeup pipe
  • INFO Entering main event loop

After the last line the shell isnt doing anything more. I even cant tipe a new command.

Even more Infos.

I checked that Gearmand is running at the Home-Server.

ps -e|grep gearman

Output:

  • 1460 ? 00:00:00 gearmand

When i now give the command on the Worker-Server

/usr/sbin/gearmand -u root -vvv --listen=Home-Server-IP

I got following Error.

  • INFO Starting up
  • FATAL _listen_init:bind:99
  • INFO Shutdown complete

I really did nott get whats going wrong with my application.

  • 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-10T05:19:32+00:00Added an answer on June 10, 2026 at 5:19 am

    What version of gearman are you using? The output of the error message makes me think it is quite old.

    Why are you trying to run it as root?

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

Sidebar

Related Questions

I'm trying to run the example Gearman worker from their documentation (see below), but
I have a number of Gearman workers running constantly, saving things like records of
I have noticed a lot of people discussing Gearman and it's scheduling features making
I am new to Gearman. I have following queries about optimized Gearman usages: 1)
I want to know if the exception is a memoryoverflow exception for example. But
I know this is a basic question, but I can't seem to find an
I have a problem with Gearman and the worker for PHP. I want to
I've been trying to implement a Gearman worker with their C API (libgearman). But
I have an php image resizer script running as a Gearman job. Supervisord has
I have the problem that in a PHP application Gearman jobs sometimes are passed

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.