<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Spark_UI</id>
	<title>Spark UI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Spark_UI"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Spark_UI&amp;action=history"/>
	<updated>2026-12-06T00:25:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Spark_UI&amp;diff=202&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@7c9abaa</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Spark_UI&amp;diff=202&amp;oldid=prev"/>
		<updated>2026-11-25T00:52:58Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@7c9abaa&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox concept&lt;br /&gt;
| name            = Spark UI&lt;br /&gt;
| also_known_as   = Spark web UI, application UI, port 4040&lt;br /&gt;
| field           = Monitoring and debugging&lt;br /&gt;
| key_parts       = Jobs, Stages, Storage, Environment, Executors and SQL tabs; Structured Streaming tab; REST API at /api/v1&lt;br /&gt;
| implementations = [[Apache Spark]]&lt;br /&gt;
| related         = [[Spark History Server]], [[Spark event log]], [[Spark listener]], [[Job, stage and task]], [[Executor]], [[Shuffle]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-23|the v4.3.0 tag of apache/spark (docs/web-ui.md, docs/monitoring.md, docs/configuration.md, config/UI.scala, config/Status.scala)}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Spark UI&amp;#039;&amp;#039;&amp;#039; is the web interface that the driver of an [[Apache Spark]] application serves while the application runs, by default at &amp;lt;code&amp;gt;http://&amp;amp;lt;driver-host&amp;amp;gt;:4040&amp;lt;/code&amp;gt;, to show the application&amp;#039;s jobs, stages, tasks, cached data, configuration, executors and SQL queries. It runs when &amp;lt;code&amp;gt;spark.ui.enabled&amp;lt;/code&amp;gt; is true, which is the default.&amp;lt;ref name=&amp;quot;uiconf&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;webui&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/web-ui.html |title=Web UI (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; The UI exists only while the application runs; for finished applications, the [[Spark History Server]] rebuilds the same pages from the [[Spark event log]].&lt;br /&gt;
&lt;br /&gt;
== How do you open the Spark UI? ==&lt;br /&gt;
The UI is on by default (&amp;lt;code&amp;gt;spark.ui.enabled&amp;lt;/code&amp;gt;, default true) and listens on &amp;lt;code&amp;gt;spark.ui.port&amp;lt;/code&amp;gt; (default 4040).&amp;lt;ref name=&amp;quot;uiconf&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/core/src/main/scala/org/apache/spark/internal/config/UI.scala |title=config/UI.scala (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; When the port is taken, for example by another application on the same host, Spark tries 4041, 4042 and so on, and logs the chosen port at startup.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt; The same data is available as JSON from the REST API at &amp;lt;code&amp;gt;http://localhost:4040/api/v1&amp;lt;/code&amp;gt; for a running application.&amp;lt;ref name=&amp;quot;monitoring&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/monitoring.html |title=Monitoring and Instrumentation (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Jobs tab ==&lt;br /&gt;
The Jobs tab lists every job of the application with its status, duration and progress, and shows an event timeline of executors being added and removed alongside the jobs.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt; A job is the work that one action, such as &amp;lt;code&amp;gt;count()&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;write&amp;lt;/code&amp;gt;, triggers (see [[Job, stage and task]]).&lt;br /&gt;
&lt;br /&gt;
The job detail page shows the job&amp;#039;s stages grouped by status, a DAG visualization, and per-stage &amp;#039;&amp;#039;&amp;#039;Input&amp;#039;&amp;#039;&amp;#039; (bytes read from storage), &amp;#039;&amp;#039;&amp;#039;Output&amp;#039;&amp;#039;&amp;#039; (bytes written), &amp;#039;&amp;#039;&amp;#039;Shuffle read&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Shuffle write&amp;#039;&amp;#039;&amp;#039;. It also links to the SQL query that created the job.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039;&amp;#039; a job that is much slower than its neighbours, failed jobs, and long gaps in the timeline where no executors were available.&lt;br /&gt;
&lt;br /&gt;
== Stages tab ==&lt;br /&gt;
The Stages tab lists all stages by status: active, pending, completed, skipped and failed. Only failed stages show a failure reason, and an active stage can be cancelled with its &amp;#039;&amp;#039;&amp;#039;(kill)&amp;#039;&amp;#039;&amp;#039; link, which &amp;lt;code&amp;gt;spark.ui.killEnabled&amp;lt;/code&amp;gt; (default true) allows.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;uiconf&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The stage detail page is where most performance problems show up. It gives summary statistics (minimum, percentiles, maximum) over all tasks for these metrics:&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Duration&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;GC time&amp;#039;&amp;#039;&amp;#039;. A maximum far above the median means data skew or a straggler.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Scheduler delay&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;task deserialization time&amp;#039;&amp;#039;&amp;#039;, which are large when tasks are tiny or closures are big.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Shuffle Read Size / Records&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Shuffle Read Fetch Wait Time&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Shuffle Remote Reads&amp;#039;&amp;#039;&amp;#039;, which show how much the stage depends on the network.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Shuffle spill (memory)&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Shuffle spill (disk)&amp;#039;&amp;#039;&amp;#039;. Any spill means execution memory ran out for this stage (see [[Shuffle]]).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Peak execution memory&amp;#039;&amp;#039;&amp;#039; used by shuffles, aggregations and joins.&lt;br /&gt;
&lt;br /&gt;
The page also aggregates the metrics by executor, lists named accumulators, and has a task table with links to each task&amp;#039;s executor logs.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Storage tab ==&lt;br /&gt;
The Storage tab lists the RDDs and DataFrames that the application has persisted, with their storage level, size in memory and on disk, and number of cached partitions. The detail page shows which executors hold each partition.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039;&amp;#039; a cached DataFrame with fewer cached partitions than total partitions, which means part of it was evicted or never computed.&lt;br /&gt;
&lt;br /&gt;
== Environment tab ==&lt;br /&gt;
The Environment tab shows the configuration the application is actually running with, in sub-tabs: &amp;#039;&amp;#039;&amp;#039;Runtime Information&amp;#039;&amp;#039;&amp;#039; (JVM and Scala versions), &amp;#039;&amp;#039;&amp;#039;Spark Properties&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Resource Profiles&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Hadoop Properties&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;System Properties&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Metrics Properties&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Classpath Entries&amp;#039;&amp;#039;&amp;#039;. Properties set as &amp;lt;code&amp;gt;spark.hadoop.*&amp;lt;/code&amp;gt; appear under Spark Properties, not Hadoop Properties.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039;&amp;#039; whether a setting passed at submit time was applied, and which jar versions are on the classpath when there is a class conflict.&lt;br /&gt;
&lt;br /&gt;
== Executors tab ==&lt;br /&gt;
The Executors tab lists every executor, including the driver, with its memory, disk, cores, storage memory used for cached data, task counts, shuffle totals and GC time. Each row has &amp;#039;&amp;#039;&amp;#039;Thread Dump&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Heap Histogram&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Flame Graph&amp;#039;&amp;#039;&amp;#039; links that open live data for that executor, and &amp;#039;&amp;#039;&amp;#039;stderr&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;stdout&amp;#039;&amp;#039;&amp;#039; links to its logs.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039;&amp;#039; executors with high GC time, a few executors that ran most of the tasks, and executors that were lost (see [[Executor]]).&lt;br /&gt;
&lt;br /&gt;
== SQL tab ==&lt;br /&gt;
The SQL tab, sometimes called the SQL / DataFrame tab, lists every SQL query and every DataFrame action that triggered execution, not only queries written as SQL strings.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt; Each query has a graph of its physical operators with their metrics, and a detail page with the parsed, analyzed and optimized logical plans and the physical plan.&lt;br /&gt;
&lt;br /&gt;
The operator metrics are the most direct view of what a query did. Examples include &amp;lt;code&amp;gt;number of output rows&amp;lt;/code&amp;gt; on filters and joins, &amp;lt;code&amp;gt;data size&amp;lt;/code&amp;gt; on exchanges, &amp;lt;code&amp;gt;shuffle bytes written&amp;lt;/code&amp;gt; on a shuffle exchange, &amp;lt;code&amp;gt;spill size&amp;lt;/code&amp;gt; on sorts and hash aggregates, and the file and partition counts on scans.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039;&amp;#039; an unexpected &amp;lt;code&amp;gt;Exchange&amp;lt;/code&amp;gt;, a scan that read many more files or partitions than the filter should allow (see [[Partition pruning]]), and a join whose output row count is far larger than its inputs.&lt;br /&gt;
&lt;br /&gt;
== Other tabs ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Structured Streaming&amp;#039;&amp;#039;&amp;#039; appears when micro-batch streaming queries run. It shows input rate, process rate, batch duration, operation durations, watermark gap and state store metrics for each query.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Streaming (DStreams)&amp;#039;&amp;#039;&amp;#039; appears for applications that use the legacy [[Spark Streaming (DStreams)|DStream API]].&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;JDBC/ODBC Server&amp;#039;&amp;#039;&amp;#039; appears when Spark runs as a distributed SQL engine through the Thrift server.&amp;lt;ref name=&amp;quot;webui&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How much history does the Spark UI keep? ==&lt;br /&gt;
The live UI keeps a bounded amount of history in driver memory. By default it remembers 1000 jobs (&amp;lt;code&amp;gt;spark.ui.retainedJobs&amp;lt;/code&amp;gt;), 1000 stages (&amp;lt;code&amp;gt;spark.ui.retainedStages&amp;lt;/code&amp;gt;), 100000 tasks per stage (&amp;lt;code&amp;gt;spark.ui.retainedTasks&amp;lt;/code&amp;gt;) and 1000 finished SQL executions (&amp;lt;code&amp;gt;spark.sql.ui.retainedExecutions&amp;lt;/code&amp;gt;).&amp;lt;ref name=&amp;quot;statusconf&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/core/src/main/scala/org/apache/spark/internal/config/Status.scala |title=config/Status.scala (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/configuration.html |title=Spark Configuration (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Older entries are garbage collected, so a long-running application loses its early history from the live UI.&lt;br /&gt;
&lt;br /&gt;
To see an application after it ends, set &amp;lt;code&amp;gt;spark.eventLog.enabled&amp;lt;/code&amp;gt; to true before starting it, and read the logs with the [[Spark History Server]].&amp;lt;ref name=&amp;quot;monitoring&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Spark History Server]]&lt;br /&gt;
* [[Spark event log]]&lt;br /&gt;
* [[Spark listener]]&lt;br /&gt;
* [[Job, stage and task]]&lt;br /&gt;
* [[Executor]]&lt;br /&gt;
* [[Shuffle]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>