Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8075291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:56:31+00:00 2026-06-05T14:56:31+00:00

I’m developing a fork of the Heroku buildpack for JRuby that uses JDK7 and

  • 0

I’m developing a fork of the Heroku buildpack for JRuby that uses JDK7 and JRuby 1.7.0.preview1. The good news is that it works – the bad news is that the slug is very large. Once I bundle together JRuby, the JDK, and a “Hello, world” Rails 3 app, the compressed slug size is 98.4 MB at deploy time. This isn’t surprising, given that the JDK is 129 MB and JRuby is 29 MB (both uncompressed).

Since Heroku has a limit of 100MB for the slug, this leaves me with very little room for actual application development – it’s easy to see that even a simple Rails app will push me over the limit.

I’ve already removed as many obviously “optional” things from both the JDK and JRuby as possible (source code, docs, examples, native libraries for things other than x86_64, etc). I’m wondering if there’s any clever way to move things out of the slug, reduce the JDK or JRuby much further, or actually increase the allowed slug size. Given Heroku’s buildpack support and the de facto practice of bundling VMs and frameworks in slugs, the 100MB limit is a much lower ceiling than it used to be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:56:33+00:00Added an answer on June 5, 2026 at 2:56 pm

    It’s not really my area, but I think you could go through the JDK JARs and remove a fair amount of stuff that doesn’t make sense to have on the server. I know you removed some files, but it doesn’t sound like you pruned any of the JARs that you kept. I just took a peak and saw a bunch of Swing and AWT classes, for example. Those alone should buy you several megabytes. I’m sure you’d know better than I what else would be good candidates for removal.

    Update: I was curious, so I just gave it a try. I saved 5.5MB by removing Swing and AWT. That seems like a solid start, and again, presumably someone with more familiarity will likely have a good idea what else might make sense to remove.

    Update 2: And I just saved another 4.5MB, for a total of 10MB, by using bzip2 --best to recompress the (decompressed) java archive. That trick only saved half a meg for the jruby archive, but that still brings the total to 10.5MB smaller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.