Security

How to run pstack and gcore against splunkweb python process?

zliu
Splunk Employee
Splunk Employee

How to run pstack and gcore against splunkweb python process? I need to troubleshoot a splunkweb hanging issue.

1 Solution

Genti
Splunk Employee
Splunk Employee

Here is what i found:

when you have a case of "slunkweb" hangs, you can ask the customer to do the following:

./splunk status

Get the pid of splunkweb.

then run:

pstack pid > splunkweb.pstack

This will create a file named splunkweb.pstack.

Then run:

gcore pid

This will create a file named core.pid. Upload these files to support and one of our friendly dev's will somehow get their hands on them.

.gz

View solution in original post

Genti
Splunk Employee
Splunk Employee

what Gerald said the first post!

0 Karma

Genti
Splunk Employee
Splunk Employee

Here is what i found:

when you have a case of "slunkweb" hangs, you can ask the customer to do the following:

./splunk status

Get the pid of splunkweb.

then run:

pstack pid > splunkweb.pstack

This will create a file named splunkweb.pstack.

Then run:

gcore pid

This will create a file named core.pid. Upload these files to support and one of our friendly dev's will somehow get their hands on them.

.gz

gkanapathy
Splunk Employee
Splunk Employee

(I mean, I realize you'll be looking at the core/stack of the Python interpreter [running CherryPy], but I guess you got http://wiki.python.org/moin/DebuggingWithGdb to help)

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Not sure what exactly you're trying to do, but is it any more complicated than just calling pstack or gcore passing it the SplunkWeb process id number?

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...