Hyukjin Kwon created ZEPPELIN-1592:
--------------------------------------
Summary: Threads not termiated when repeating the notebook
execution
Key: ZEPPELIN-1592
URL: https://issues.apache.org/jira/browse/ZEPPELIN-1592
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.6.0
Environment: CentOS release 6.8 (Final)
Reporter: Hyukjin Kwon
It seems threads are not cleaned and terminated after running multiple times
the notebooks. For example, I just created a note book and then just ran the
codes below:
{code}
case class Person(name: String, age: Long)
val df = Seq(Person("Andy", 32)).toDF()
df.show()
{code}
and I found the Zepplin process as below
{code}
iris 20745 1 3 17:45 pts/5 00:00:40 .../java -Dfile.encoding=UTF-8
-Xms1024m -Xmx1024m -XX:MaxPermSize=512m
-Dlog4j.configuration=file:///.../zeppelin/conf/log4j.properties
-Dzeppelin.log.file=.../zeppelin/logs/zeppelin-iris-IRIS-A01.log -cp
::.../zeppelin/lib/*:.../zeppelin/*::.../zeppelin/conf
org.apache.zeppelin.server.ZeppelinServer
{code}
and then check the thread count via the command as below:
{code}
ps huH p 20745 | wc -l
{code}
I just realised that it actually never decreases. When I run a notebook, it
seems it makes two threads but only one of them seems terminated.
{code}
$ ps huH p 20745 | wc -l
56
$ ps huH p 20745 | wc -l
59
$ ps huH p 20745 | wc -l
60
$ ps huH p 20745 | wc -l
60
$ ps huH p 20745 | wc -l
61
$ ps huH p 20745 | wc -l
61
$ ps huH p 20745 | wc -l
63
$ ps huH p 20745 | wc -l
62
$ ps huH p 20745 | wc -l
62
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)