Skip to content

Conversation

@andrewor14
Copy link
Contributor

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)
    at 

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

@andrewor14
Copy link
Contributor Author

Actually, I'm not noticing significant gains from the changes in this patch alone. I am closing this for now.

@andrewor14 andrewor14 closed this May 18, 2015
@SparkQA
Copy link

SparkQA commented May 19, 2015

Test build #33026 has finished for PR 6248 at commit 304203e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14 andrewor14 deleted the gzip-jetty branch May 19, 2015 02:44
@JoshRosen
Copy link
Contributor

Hey, just curious: did this not make any different w.r.t the transfer size or the hanging? Enabling GZIP compression could still be worthwhile even if the browser is still going to crash when trying to render the page, since it'll result in some bandwidth savings.

@zsxwing
Copy link
Member

zsxwing commented Jun 30, 2015

@andrewor14 could you reopen this one? GZip is better when accessing a remote node.

@andrewor14
Copy link
Contributor Author

Oops, I deleted this branch already. I will reopen it separately.

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
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]>
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.

4 participants