CrushMFT Documentation

Thread dumps and what to send support#

A thread dump is a snapshot of what the server is doing at one moment: every thread, and the line of code it is at. It is the tool for a server that hangs, is slow, or uses all of a processor. It does no harm to take one, and it takes a second.

Taking a thread dump#

From How
the admin pages Server Admin › About › Maintenance › Dump threads. It opens a snapshot of every running thread.
a cluster on the map, a node's detail has Thread dump, for any server of the cluster
the machine, when the admin pages do not answer Java's own tools, as the account the server runs as: jstack with the number of the server's process, or the signal kill -3 on Linux and macOS, which makes Java write the dump to the server's output

Take three, about ten seconds apart. One shows where things are; three show whether they move. A thread that stands at the same line in all three is stuck, or busy with one long thing.

Take them while it is happening. A dump of a server that has recovered shows nothing.

Reading one#

You do not have to. But a few things can be seen without knowing the code:

In the dump Means
very many threads with the same lines that is what the server is busy with. Hundreds of threads in a login mean a flood of logins; hundreds waiting to write to one file or one remote server point there.
threads that are BLOCKED, waiting for a lock that one other thread holds a queue. Find the thread that holds the lock: what it does is what everybody waits for.
threads waiting in a network read to another machine the server waits for that machine: a directory, a database, a storage server
a few thousand threads in all very many connections, or connections that are not being closed
names such as SSH-WORKER-… the pool that does SSH work. Many of them busy is normal on a busy SFTP server.

Letting the assistant read it#

If the AI assistant is set up, it has a question for this: Explain a thread dump. The server takes a dump of itself, or you paste one. Before anything is sent, the dump is shortened, threads that do the same are counted as one group, and it is cleaned of names and addresses. With Show the cleaned log, thread dump or text before it is sent, you see exactly what leaves the server and send it with a second click.

A heap dump#

A heap dump is a copy of the server's whole memory, for finding what fills it. Take one when memory grows and does not come back, not for a slow server.

Server Admin › About › Maintenance › Dump heap writes it to a file on the server's disk.

  • It is as large as the memory in use: make sure the disk has the room.
  • The server stands still while it is written, for seconds to minutes.
  • It can hold anything that was in memory: file contents, passwords that were being checked, keys. Treat the file as the most secret thing on the server. Send it only when support asks, by a protected way, and delete it afterwards.

Debug info#

The server can collect its logs and settings into one package:

Button, in About › Maintenance Does
Send debug info to support collects and sends it to CrushMFT support. "It can take 30 to 40 seconds."
Download debug info the same package as a file, to look at first, or to attach to a ticket yourself. Use it when the server has no way out to the internet.

What to send support#

A good report is answered in one round. Send:

what you see the exact message, and a screenshot if it is on a screen
what you expected in a sentence
who and when the user, their program and its version, their address, the time with the time zone
how to make it happen the steps, if it can be repeated. "Always", "sometimes", "once".
since when and what changed then: an update, a new setting, a new partner
the server the version and build, the operating system and the Java version: all in About
the log of that time with debug on for one try, if it can be repeated: What is logged. The few minutes around the event, not the whole day.
debug info the package above
for a hang or slowness three thread dumps, taken while it happened
for growing memory the memory chart of the Dashboard over a day; a heap dump only when asked
for a job the job's own log of the failed run: Running jobs
for a login through another system the plugin's lines with Debug on: Plugins overview

What is in what you send#

Logs name users, addresses and file names. Settings hold the names of your servers. Passwords in settings are stored encrypted and are masked in logs, but look before you send: What a log may hold.

If your rules do not let such data leave the house, say so in the ticket. Often a short excerpt with names replaced is enough.

A support session#

When words are not enough, support can look at your admin pages with you, in your browser, with your consent and while you watch: Support session.

Not tried for this page#

Dump threads was not pressed for this page; it and the other buttons are described on the page of the About section, which was written against a test server. The ways from the machine, jstack and the signal, are Java's own and were not run against the test server.