Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Number of attachments :
      0

      Description

      System is 2011 mbp, 4gb memory

      > cd /Users/peter/.rvm/rubies/jruby-head/
      > ant cext
      Buildfile: /Users/peter/.rvm/rubies/jruby-head/build.xml...

      The system is out of resources.
      [apt] Consult the following stack trace for details.
      [apt] java.lang.OutOfMemoryError: GC overhead limit exceeded
      [apt] at java.util.HashMap.addEntry(HashMap.java:766)

      Full stack here:
      http://pastie.org/3409026

      .. quit all applications, try again

      Fuller stack here:
      http://pastie.org/3409030

        Activity

        Hide
        Hiro Asari added a comment -

        Peter,

        This is most likely your machine. http://www.petefreitag.com/item/746.cfm

        Are you sure you've terminated all your applications? No memory hogs?

        ps aux | sort -nk6 | tail
        

        Furthermore, the ant output suggests that your machine is running out of resources while ant is executing compile-jruby target. It has nothing to do with C extension.

        Show
        Hiro Asari added a comment - Peter, This is most likely your machine. http://www.petefreitag.com/item/746.cfm Are you sure you've terminated all your applications? No memory hogs? ps aux | sort -nk6 | tail Furthermore, the ant output suggests that your machine is running out of resources while ant is executing compile-jruby target. It has nothing to do with C extension.
        Hide
        Peter Ehrlich added a comment -

        I just ran it again. Usual hogs closed (rubymine and chrome), leaving over 2gb free. (I've got istat menus, which is great for this too).

        At no point while this was running was there less than 1.8gb of free memory.

        ps aux | sort -nk6 | tail
        peter 59267 0.6 0.4 3388532 18256 s000 S+ 3:11PM 0:29.11 /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/bin/java -Djdk.home= -Djruby.home=/Users/peter/.rvm/rubies/jruby-head -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/peter/.rvm/rubies/jruby-head/lib/native/Darwin -Xmx500m -Xss2048k -Djruby.memory.max=500m -Djruby.stack.max=2048k -Dsun.java.command=org.jruby.Main -Djava.class.path= -Xbootclasspath/a:/Users/peter/.rvm/rubies/jruby-head/lib/jruby.jar -Dfile.encoding=UTF-8 org/jruby/Main --1.9 /Users/peter/.rvm/gems/jruby-head/bin/rails c
        peter 129 0.0 0.5 2733152 19348 ?? S 10Feb12 1:49.72 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
        peter 166 0.0 0.5 2818960 21420 ?? S 10Feb12 0:24.23 /Applications/Alfred.app/Contents/MacOS/Alfred -psn_0_45067
        peter 130 1.3 0.5 2852280 21808 ?? S 10Feb12 51:55.19 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer
        root 59 0.0 0.6 2813164 24032 ?? Ss 10Feb12 12:30.08 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds
        peter 131 0.2 0.7 4021144 28480 ?? S 10Feb12 7:13.32 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
        peter 59476 0.0 0.7 2668924 28508 ?? SN 3:23PM 0:25.15 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.pool.0
        peter 56535 0.0 1.1 2770708 47536 ?? R 11:55AM 0:52.64 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_12127120
        _windowserver 89 0.6 1.2 3355076 50772 ?? Ss 10Feb12 158:27.30 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer -daemon
        peter 59268 0.0 1.4 3419204 59920 s000 S+ 3:11PM 1:05.33 /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/bin/java -Djdk.home= -Djruby.home=/Users/peter/.rvm/rubies/jruby-head -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/peter/.rvm/rubies/jruby-head/lib/native/Darwin -Xmx500m -Xss2048k -Djruby.memory.max=500m -Djruby.stack.max=2048k -Dsun.java.command=org.jruby.Main -Djava.class.path= -Xbootclasspath/a:/Users/peter/.rvm/rubies/jruby-head/lib/jruby.jar -Dfile.encoding=UTF-8 org/jruby/Main --1.9 script/rails c
        ~/.rvm/rubies/jruby-head ant cext

        Show
        Peter Ehrlich added a comment - I just ran it again. Usual hogs closed (rubymine and chrome), leaving over 2gb free. (I've got istat menus, which is great for this too). At no point while this was running was there less than 1.8gb of free memory. ps aux | sort -nk6 | tail peter 59267 0.6 0.4 3388532 18256 s000 S+ 3:11PM 0:29.11 /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/bin/java -Djdk.home= -Djruby.home=/Users/peter/.rvm/rubies/jruby-head -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/peter/.rvm/rubies/jruby-head/lib/native/Darwin -Xmx500m -Xss2048k -Djruby.memory.max=500m -Djruby.stack.max=2048k -Dsun.java.command=org.jruby.Main -Djava.class.path= -Xbootclasspath/a:/Users/peter/.rvm/rubies/jruby-head/lib/jruby.jar -Dfile.encoding=UTF-8 org/jruby/Main --1.9 /Users/peter/.rvm/gems/jruby-head/bin/rails c peter 129 0.0 0.5 2733152 19348 ?? S 10Feb12 1:49.72 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock peter 166 0.0 0.5 2818960 21420 ?? S 10Feb12 0:24.23 /Applications/Alfred.app/Contents/MacOS/Alfred -psn_0_45067 peter 130 1.3 0.5 2852280 21808 ?? S 10Feb12 51:55.19 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer root 59 0.0 0.6 2813164 24032 ?? Ss 10Feb12 12:30.08 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds peter 131 0.2 0.7 4021144 28480 ?? S 10Feb12 7:13.32 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder peter 59476 0.0 0.7 2668924 28508 ?? SN 3:23PM 0:25.15 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.pool.0 peter 56535 0.0 1.1 2770708 47536 ?? R 11:55AM 0:52.64 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_12127120 _windowserver 89 0.6 1.2 3355076 50772 ?? Ss 10Feb12 158:27.30 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer -daemon peter 59268 0.0 1.4 3419204 59920 s000 S+ 3:11PM 1:05.33 /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/bin/java -Djdk.home= -Djruby.home=/Users/peter/.rvm/rubies/jruby-head -Djruby.script=jruby -Djruby.shell=/bin/sh -Djffi.boot.library.path=/Users/peter/.rvm/rubies/jruby-head/lib/native/Darwin -Xmx500m -Xss2048k -Djruby.memory.max=500m -Djruby.stack.max=2048k -Dsun.java.command=org.jruby.Main -Djava.class.path= -Xbootclasspath/a:/Users/peter/.rvm/rubies/jruby-head/lib/jruby.jar -Dfile.encoding=UTF-8 org/jruby/Main --1.9 script/rails c ~/.rvm/rubies/jruby-head ant cext
        Hide
        Hiro Asari added a comment -

        Peter,

        You have two rails console processes running. You should terminate them and try again.

        Show
        Hiro Asari added a comment - Peter, You have two rails console processes running. You should terminate them and try again.
        Hide
        Charles Oliver Nutter added a comment -

        I got this on a JDK8 build too. I think there might be a bug in javac.

        Show
        Charles Oliver Nutter added a comment - I got this on a JDK8 build too. I think there might be a bug in javac.
        Hide
        Charles Oliver Nutter added a comment -

        We ran inso this issue more frequently and bumped up the max memory for the compile phase.

        Show
        Charles Oliver Nutter added a comment - We ran inso this issue more frequently and bumped up the max memory for the compile phase.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Peter Ehrlich
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: