Skip to content

Conversation

@andrewor14
Copy link
Contributor

(This reopens a patch that was closed in the past: #6248)

When you view the stage page while running the following:

sc.parallelize(1 to X, 10000).count()

The page never loads, the job is stalled, and you end up running into an OOM:

HTTP ERROR 500

Problem accessing /stages/stage/. Reason:
    Server Error
Caused by:
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2367)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)

This patch compresses Jetty responses in gzip. The correct long-term fix is to add pagination.

@andrewor14
Copy link
Contributor Author

@zsxwing @srowen @pwendell

@andrewor14 andrewor14 changed the title [SPARK-7716] [UI] Stage page hangs with many tasks [SPARK-2017] [UI] Stage page hangs with many tasks Jul 8, 2015
@SparkQA
Copy link

SparkQA commented Jul 8, 2015

Test build #36818 has finished for PR 7296 at commit a051c64.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public final class Interval implements Serializable

@pwendell
Copy link
Contributor

pwendell commented Jul 9, 2015

Looks good, did you do browser inspection and make sure this is actually working?

@zsxwing
Copy link
Member

zsxwing commented Jul 9, 2015

LGTM. Verified it works locally.

@andrewor14
Copy link
Contributor Author

Thanks, merging into master 1.4.

@asfgit asfgit closed this in ebdf585 Jul 9, 2015
asfgit pushed a commit that referenced this pull request Jul 9, 2015
(This reopens a patch that was closed in the past: #6248)

When you view the stage page while running the following:
```
sc.parallelize(1 to X, 10000).count()
```
The page never loads, the job is stalled, and you end up running into an OOM:
```
HTTP ERROR 500

Problem accessing /stages/stage/. Reason:
    Server Error
Caused by:
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2367)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
```
This patch compresses Jetty responses in gzip. The correct long-term fix is to add pagination.

Author: Andrew Or <[email protected]>

Closes #7296 from andrewor14/gzip-jetty and squashes the following commits:

a051c64 [Andrew Or] Use GZIP to compress Jetty responses

(cherry picked from commit ebdf585)
Signed-off-by: Andrew Or <[email protected]>
@andrewor14 andrewor14 deleted the gzip-jetty branch July 9, 2015 20:29
@XuTingjun
Copy link
Contributor

@andrewor14, Now the task pagination has been realized. So this patch has no meaning now?

@pwendell
Copy link
Contributor

pwendell commented Aug 7, 2015

This is still good to have - it doesn't hurt to gzip the output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants