-1

I wanted to understand how do httpd and Tomcat use threads. If I connect Apache httpd and Tomcat with a AJP connector (mod_jk) then will they both share same thread pool and use individual threads OR httpd will first acquire a thread and invoke the servlet container in the same thread?

Thanks

Rahul
  • 824
  • 1
  • 12
  • 27

1 Answers1

2

No, they do not share anything but the word 'Apache' in their names.

Michael-O
  • 18,123
  • 6
  • 55
  • 121
  • So this means there are 2 threads involved in processing each request 1 for each of them and as far as I understand, httpd thread is blocked till the servlet returns a response. Is this correct? – Rahul Aug 30 '13 at 19:05
  • 1
    First of all, it depends on your HTTPd setup, prefork or worker. Tomcat runs a JVM process with spawned threads. One request is handled by a thread on Tomcat side. – Michael-O Aug 30 '13 at 19:48