spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HuS.Andy <>
Subject RE: Spark Executor Memory Usage
Date Mon, 01 Jun 2015 08:41:50 GMT
#1 I not sure if I got you point, as I known, Xmx is not turn into physical memory as soon
as the process running. it first loaded into virtual memory, if you heap is need more, it
will gradually increase in physical memory until to the max heap.
#2 Physical memory contains not only heap, but also stack, direct memory, shared lib, and
perm space, and also there have VSS, RSS, PSS, USS concept, you can google. 
simple says:Vss = virtual set sizeRss = resident set sizePss = proportional set size Uss =
unique set size
Best Regards,Andy Hu(胡 珊)

Date: Fri, 29 May 2015 07:41:41 -0700
Subject: Re: Spark Executor Memory Usage

For #2, see
On Fri, May 29, 2015 at 6:56 AM, Valerii Moisieienko <> wrote:

My name is Valerii. I have noticed strange memory behaivour of Spark's

executor on my cluster. Cluster works in standalone mode with 3 workers.

Application runs in cluster mode.

From topology configuration

spark.executor.memory              1536m

I checked heap usage via JVisualVM:

and via htop:

I have 2 questions regarding Spark's executors memory usage:

1. Why does Max Heap Size change during executor work?

2. Why does Memory usage via htop greater than executor's heap size?

Thank you!


View this message in context:

Sent from the Apache Spark User List mailing list archive at


To unsubscribe, e-mail:

For additional commands, e-mail:

View raw message