[ 
https://issues.apache.org/jira/browse/NIFI-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998563#comment-15998563
 ] 

Randy Gelhausen commented on NIFI-2268:
---------------------------------------

This is reproducible in current master. I also noticed that while 
HandleHTTPRequest is running with default configuration, NiFi is not able to 
shutdown cleanly:

n0:artifacts randy$ ./nifi-1.2.0-SNAPSHOT/bin/nifi.sh stop

Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/
NiFi home: /Users/randy/artifacts/nifi-1.2.0-SNAPSHOT

Bootstrap Config File: 
/Users/randy/artifacts/nifi-1.2.0-SNAPSHOT/conf/bootstrap.conf

2017-05-05 07:23:28,187 INFO [main] org.apache.nifi.bootstrap.Command Apache 
NiFi has accepted the Shutdown Command and is shutting down now
2017-05-05 07:23:28,200 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:30,209 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:32,217 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:34,231 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:36,242 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:38,251 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:40,265 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:42,280 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:44,292 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:46,302 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:48,311 INFO [main] org.apache.nifi.bootstrap.Command Waiting 
for Apache NiFi to finish shutting down...
2017-05-05 07:23:48,318 WARN [main] org.apache.nifi.bootstrap.Command NiFi has 
not finished shutting down after 20 seconds. Killing process.
2017-05-05 07:23:48,326 INFO [main] org.apache.nifi.bootstrap.Command NiFi has 
finished shutting down.

> HandleHttpRequest can use too many tasks and CPU
> ------------------------------------------------
>
>                 Key: NIFI-2268
>                 URL: https://issues.apache.org/jira/browse/NIFI-2268
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 0.7.0
>            Reporter: Michael Moser
>            Priority: Minor
>
> With the default settings of HandleHttpRequest, user reports 100% CPU usage 
> and millions of scheduled tasks.  When this processor doesn't have work to 
> do, its onTrigger() should call ProcessContext.yield().  This is how the 
> ListenHTTP processor works, so it's an established pattern.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to