Glassfish Gem not detecting rails application

Hello list!

I am trying to figure something out that i cannot for the life of me
understand. I have have two identical environments, two machines with
same os and libs, same jruby and gems, and using the same app. One
detects and starts the rails app and one just stops. Below are the
logs from glassfish startup. Note how the not-working-machine just
stops att Grizzly being loaded. I would really appreciate any clue to
this:

NOT working machine

… SNIP …

Module Status Report Ends
Mar 9, 2010 6:30:32 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Mar 9, 2010 6:30:32 PM org.hibernate.validator.util.Version
INFO: Hibernate Validator null
Mar 9, 2010 6:30:32 PM
org.hibernate.validator.engine.ResourceBundleMessageInterpolator
getFileBasedResourceBundle
FINE: ValidationMessages not found. Delegating to
org.hibernate.validator.ValidationMessages
Mar 9, 2010 6:30:32 PM
org.hibernate.validator.engine.resolver.DefaultTraversableResolver
detectJPA
FINE: Cannot find javax.persistence.PersistenceUtil on classpath. All
properties will per default be traversable.
Mar 9, 2010 6:30:32 PM org.hibernate.validator.xml.ValidationXmlParser
getInputStreamForPath
FINE: No default context class loader, fall back to Bean Validation’s
loader
Mar 9, 2010 6:30:32 PM org.hibernate.validator.xml.ValidationXmlParser
getValidationConfig
FINE: No META-INF/validation.xml found. Using annotation based
configuration only
Mar 9, 2010 6:30:32 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:30:33 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:30:33 PM
com.sun.enterprise.v3.services.impl.DynamicConfigListener$1 changed
FINE: NetworkConfig changed ADD interface
com.sun.grizzly.config.dom.NetworkListener
GlassFishConfigBean.com.sun.grizzly.config.dom.NetworkListener
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.ContextMapper
addHost
FINE: Host-Host: server aliases [] host null
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.V3Mapper addHost
FINE: Host-Host: server aliases [Ljava.lang.String;@e2f75e5 host null
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.V3Mapper
addContext
FINE: Context-Host: server path context
[email protected] port 8080
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.ContextMapper
addContext
FINE: Context-Host: server path context
[email protected] port 8080
Mar 9, 2010 6:30:33 PM
com.sun.enterprise.v3.services.impl.DynamicConfigListener$1 changed
FINE: NetworkConfig changed CHANGE interface
com.sun.grizzly.config.dom.NetworkListeners
GlassFishConfigBean.com.sun.grizzly.config.dom.NetworkListeners
Mar 9, 2010 6:30:33 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:30:33 PM
com.sun.enterprise.v3.services.impl.DynamicConfigListener$1 changed
FINE: NetworkConfig changed CHANGE interface
com.sun.enterprise.config.serverbeans.VirtualServer
GlassFishConfigBean.com.sun.enterprise.config.serverbeans.VirtualServer
Mar 9, 2010 6:30:33 PM
com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
INFO: Grizzly Framework 1.9.18-k started in: 101ms listening on port
8080

… STOP …

WORKING machine:

… SNIP …

Module Status Report Ends
Mar 9, 2010 6:20:14 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Mar 9, 2010 6:20:14 PM org.hibernate.validator.util.Version
INFO: Hibernate Validator null
Mar 9, 2010 6:20:14 PM
org.hibernate.validator.engine.ResourceBundleMessageInterpolator
getFileBasedResourceBundle
FINE: ValidationMessages not found. Delegating to
org.hibernate.validator.ValidationMessages
Mar 9, 2010 6:20:14 PM
org.hibernate.validator.engine.resolver.DefaultTraversableResolver
detectJPA
FINE: Cannot find javax.persistence.PersistenceUtil on classpath. All
properties will per default be traversable.
Mar 9, 2010 6:20:14 PM org.hibernate.validator.xml.ValidationXmlParser
getInputStreamForPath
FINE: No default context class loader, fall back to Bean Validation’s
loader
Mar 9, 2010 6:20:14 PM org.hibernate.validator.xml.ValidationXmlParser
getValidationConfig
FINE: No META-INF/validation.xml found. Using annotation based
configuration only
Mar 9, 2010 6:20:14 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:20:14 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:20:14 PM
com.sun.enterprise.v3.services.impl.DynamicConfigListener$1 changed
FINE: NetworkConfig changed ADD interface
com.sun.grizzly.config.dom.NetworkListener
GlassFishConfigBean.com.sun.grizzly.config.dom.NetworkListener
Mar 9, 2010 6:20:14 PM org.glassfish.internal.grizzly.ContextMapper
addHost
FINE: Host-Host: server aliases [] host null
Mar 9, 2010 6:20:14 PM org.glassfish.internal.grizzly.V3Mapper addHost
FINE: Host-Host: server aliases [Ljava.lang.String;@7c6743e2 host null
Mar 9, 2010 6:20:14 PM org.glassfish.internal.grizzly.V3Mapper
addContext
FINE: Context-Host: server path context
[email protected] port 8080
Mar 9, 2010 6:20:14 PM org.glassfish.internal.grizzly.ContextMapper
addContext
FINE: Context-Host: server path context
[email protected] port 8080
Mar 9, 2010 6:20:14 PM
com.sun.enterprise.v3.services.impl.DynamicConfigListener$1 changed
FINE: NetworkConfig changed CHANGE interface
com.sun.grizzly.config.dom.NetworkListeners
GlassFishConfigBean.com.sun.grizzly.config.dom.NetworkListeners
Mar 9, 2010 6:20:14 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:20:14 PM
com.sun.enterprise.v3.services.impl.DynamicConfigListener$1 changed
FINE: NetworkConfig changed CHANGE interface
com.sun.enterprise.config.serverbeans.VirtualServer
GlassFishConfigBean.com.sun.enterprise.config.serverbeans.VirtualServer
Mar 9, 2010 6:20:14 PM
com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
INFO: Grizzly Framework 1.9.18-k started in: 73ms listening on port 8080
Mar 9, 2010 6:20:16 PM
org.glassfish.deployment.common.InstalledLibrariesResolver
getInstalledLibraries
FINE: InstalledLibrariesResolver : exception occurred :
java.lang.NullPointerException
Mar 9, 2010 6:20:17 PM com.sun.enterprise.v3.server.ApplicationLifecycle
deploy
FINE: Before Sortingjruby
Mar 9, 2010 6:20:17 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:20:17 PM org.glassfish.kernel.config.DefaultConfigParser$2
run
INFO: interface org.glassfish.scripting.jruby.config.JrubyContainer
Mar 9, 2010 6:20:17 PM org.glassfish.kernel.config.DefaultConfigParser$2
run
FINE: time to parse domain.xml : 2
Mar 9, 2010 6:20:17 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:20:17 PM com.sun.enterprise.v3.server.DomainXmlPersistence
save
FINE: domain.xml not persisted, null destination
Mar 9, 2010 6:20:17 PM
com.sun.enterprise.v3.server.ApplicationLifecycle setupContainerInfos
FINE: Keyed Deployer class org.glassfish.scripting.jruby.JRubyDeployer
Mar 9, 2010 6:20:17 PM
com.sun.enterprise.v3.server.ApplicationLifecycle setupContainerInfos
FINE: Ordered Deployer class org.glassfish.scripting.jruby.JRubyDeployer
Mar 9, 2010 6:20:17 PM com.sun.enterprise.v3.server.ApplicationLifecycle
deploy
FINE: After Sorting jruby
Mar 9, 2010 6:20:17 PM
org.glassfish.deployment.common.InstalledLibrariesResolver
getInstalledLibraries
FINE: InstalledLibrariesResolver : exception occurred :
java.lang.NullPointerException
Mar 9, 2010 6:20:19 PM org.glassfish.scripting.jruby.JRubyConfigImpl

INFO: Running current in staging environment.
Mar 9, 2010 6:20:19 PM
org.glassfish.scripting.jruby.RackApplicationChooser which
FINE: Path is /apps/auktion/releases/20100309111540, checking for Rails
Mar 9, 2010 6:20:19 PM
org.glassfish.scripting.jruby.RackApplicationChooser detectRails
INFO: Rails application detected.
Mar 9, 2010 6:20:19 PM org.glassfish.scripting.jruby.JRubyConfigImpl

FINE: applicationType: rails
Mar 9, 2010 6:20:19 PM org.glassfish.scripting.jruby.JRubyApplication

INFO: Loading application current at /
Mar 9, 2010 6:20:19 PM org.glassfish.internal.data.ModuleInfo start
FINE: starting jruby
Mar 9, 2010 6:20:19 PM com.sun.grizzly.jruby.RackGrizzlyAdapter
INFO: JRuby version is: 1.4.0
Mar 9, 2010 6:20:19 PM
com.sun.enterprise.v3.services.impl.ContainerMapper register
FINE:
MAPPER([email protected])
REGISTER contextRoot: adapter:
[email protected] container:
[email protected] port: 8080
Mar 9, 2010 6:20:19 PM org.glassfish.internal.grizzly.V3Mapper
addContext
FINE: Context-Host: server path context
[email protected] port 8080
Mar 9, 2010 6:20:19 PM org.glassfish.internal.grizzly.ContextMapper
addContext
FINE: Context-Host: server path context
[email protected] port 8080
Mar 9, 2010 6:20:19 PM org.glassfish.internal.grizzly.ContextMapper
addWrapper
FINE: Wrapper-Host: server contextPath wrapper
[email protected] path jspWildcard
false servletName null isEmptyPathSpecial false
Mar 9, 2010 6:20:19 PM org.glassfish.internal.grizzly.V3Mapper
addWrapper
FINE: Wrapper-Host: server contextPath wrapper
[email protected] path jspWildcard
false
Mar 9, 2010 6:20:19 PM org.glassfish.scripting.jruby.JRubyApplication
start
FINE: Sending JRubyProbeStatsProvider() start event for application:
current
Mar 9, 2010 6:20:19 PM
org.glassfish.scripting.jruby.monitor.JRubyApplicationStatsProvider
jrubyModuleStartedEvent
FINE: JRubyApplicationStatsProvider:jrubyModuleStartedEvent invoked
Mar 9, 2010 6:20:19 PM com.sun.grizzly.jruby.rack.JRubyRuntime
INFO: New instance of JRuby runtime created in 74 milliseconds
Mar 9, 2010 6:20:19 PM
com.sun.grizzly.jruby.rack.RackApplicationPoolFactory newApplication
FINE: Creating RailsApplication…


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I have almost always been able to figure out the problem by starting the
app w/ mongrel, which will give better error output.

Well, the app starts fine in both mongrel and jetty_rails
unfortunately…

On Tue, Mar 9, 2010 at 6:58 PM, Brandon H. [email protected]
wrote:

I am trying to figure something out that i cannot for the life of me

Mar 9, 2010 6:30:32 PM
FINE: No META-INF/validation.xml found. Using annotation based
com.sun.grizzly.config.dom.NetworkListener
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.ContextMapper
FINE: domain.xml not persisted, null destination
… STOP …
Mar 9, 2010 6:20:14 PM
getInputStreamForPath
com.sun.enterprise.v3.server.DomainXmlPersistence save
FINE: Host-Host: server aliases [Ljava.lang.String;@7c6743e2 host null
FINE: NetworkConfig changed CHANGE interface
Mar 9, 2010 6:20:14 PM
FINE: Before Sortingjruby
com.sun.enterprise.v3.server.DomainXmlPersistence save
org.glassfish.scripting.jruby.JRubyDeployer
INFO: Running current in staging environment.

[email protected] container:
addWrapper
FINE: Sending JRubyProbeStatsProvider() start event for application:


To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

The only other problems I have had with glassfish starting tended to be
permissions or log files, I guess check that all of those are ok.
Uninstall the glassfish gem and reinstall as well.

Yeah, that all seems to be in order. Tried reinstalling… no dice :confused:

On Tue, Mar 9, 2010 at 7:19 PM, Brandon H. [email protected]
wrote:

this:
Mar 9, 2010 6:30:32 PM
Mar 9, 2010 6:30:32 PM
Mar 9, 2010 6:30:32 PM
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.ContextMapper
Mar 9, 2010 6:30:33 PM org.glassfish.internal.grizzly.ContextMapper
FINE: domain.xml not persisted, null destination

INFO: Hibernate Validator null
properties will per default be traversable.
configuration only
GlassFishConfigBean.com.sun.grizzly.config.dom.NetworkListener
[email protected] port 8080
com.sun.enterprise.v3.server.DomainXmlPersistence save
8080
FINE: domain.xml not persisted, null destination
com.sun.enterprise.v3.server.DomainXmlPersistence save
org.glassfish.scripting.jruby.JRubyDeployer
INFO: Running current in staging environment.
Mar 9, 2010 6:20:19 PM
FINE:
FINE: Context-Host: server path  context
false


To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I did not find any evident issue using strace, it just seems to stop
before detecting the app. But with a little bit more experimenting I
noticed when I leave the process on for a while it eventually bombs
out with this:

java/util/Arrays.java:2882:in copyOf': java.lang.OutOfMemoryError: Java heap space (NativeException) from java/lang/AbstractStringBuilder.java:100:inexpandCapacity’
from java/lang/AbstractStringBuilder.java:572:in append' from java/lang/StringBuilder.java:203:inappend’
from java/io/UnixFileSystem.java:93:in resolve' from java/io/File.java:207:in
from java/io/File.java:1056:in listFiles' from com/sun/enterprise/deploy/shared/FileArchive.java:395:ingetListOfFiles’
from com/sun/enterprise/deploy/shared/FileArchive.java:408:in
getListOfFiles' ... 12 levels... from /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/bin/glassfish:55 from /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/bin/glassfish:19:inload’
from /usr/local/jruby/bin/glassfish:19
Stopping GlassFish!

And I have tried a lot of different memory settings and it does not
help. I have run it with 500m, 1000m, 1500m, 2000m, 2500m, 3000m for
xmx and xms, and permgen set to between 128 and 512.

The strace stop before the crash was here:

… SNIP …

stat("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/server/libjvm.so",
{st_mode=S_IFREG|0644, st_size=10152401, …}) = 0
getgid() = 33
getegid() = 33
getuid() = 33
geteuid() = 33
futex(0x7f90101c510c, 0x81 /* FUTEX_??? */, 2147483647) = 0
open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/server/libjvm.so",
O_RDONLY) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\6\22”…,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=10152401, …}) = 0
mmap(NULL, 9939680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f900f2e5000
mprotect(0x7f900f9da000, 1044480, PROT_NONE) = 0
mmap(0x7f900fad9000, 1351680, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6f4000) = 0x7f900fad9000
mmap(0x7f900fc23000, 248544, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f900fc23000
close(3) = 0
open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/bin/…/lib/amd64/jli/libm.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/server/libm.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/libm.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=47351, …}) = 0
mmap(NULL, 47351, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f90105ee000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260>\0\0”…,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=526560, …}) = 0
mmap(NULL, 2621672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f900f064000
mprotect(0x7f900f0e4000, 2093056, PROT_NONE) = 0
mmap(0x7f900f2e3000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7f000) = 0x7f900f2e3000
close(3) = 0
munmap(0x7f90105ee000, 47351) = 0
mmap(NULL, 1052672, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANONYMOUS|0x40, -1, 0) = 0x40f37000
mprotect(0x40f37000, 4096, PROT_NONE) = 0
clone(child_stack=0x41037260,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
parent_tidptr=0x410379e0, tls=0x41037950, child_tidptr=0x410379e0) =
9884
futex(0x410379e0, FUTEX_WAIT, 9884, NULL

On Tue, Mar 9, 2010 at 7:33 PM, Hassan S.
[email protected] wrote:


To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, Mar 9, 2010 at 10:27 AM, Albert R.
[email protected] wrote:

Yeah, that all seems to be in order. Tried reinstalling… no dice :confused:

Try starting up under strace and see where it’s hanging…


Hassan S. ------------------------ [email protected]
twitter: @hassan


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Albert,

Can you please file a bug at:

http://rubyforge.org/projects/glassfishgem/

?

The source code is available at:
https://glassfish-scripting.dev.java.net/source/browse/glassfish-scripting/trunk/rails/gem/

Thanks,
-Arun

On 3/11/10 1:00 AM, Albert R. wrote:

Java heap space (NativeException)
from /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/bin/glassfish:19:in
… SNIP …
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\6\22”…, 832) = 832
O_RDONLY) = -1 ENOENT (No such file or directory)
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260>\0\0”…, 832) = 832
mprotect(0x40f37000, 4096, PROT_NONE) = 0

Yeah, that all seems to be in order. Tried reinstalling… no dice :confused:
http://xircles.codehaus.org/manage_email


Need Application Server ? Download from http://glassfish.org
Blog: http://blogs.sun.com/arungupta


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Okay, I found the problem. We have our application set up with
symlinks to resources, like images and the like. These directories are
huge in production, and it seems glassfish wants to traverse
everything when it is detecting the rails application. And in our
case, it hits memory limits and dies.

Now I would volunteer to try to fix the problem, but I cannot seem to
get my hands on any source. This is not in ruby code in the gf-gem, it
is in a compiled gf-lib somewhere. Who maintains glassfish and the gem
right now? Where is the source?

Albert

On Tue, Mar 9, 2010 at 11:05 PM, Albert R.
[email protected] wrote:

    from java/io/UnixFileSystem.java:93:in `resolve’

getgid() Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 33
mprotect(0x7f900f9da000, 1044480, PROT_NONE) = 0
O_RDONLY) = -1 ENOENT (No such file or directory)
mprotect(0x7f900f0e4000, 2093056, PROT_NONE) = 0
9884


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Done!
http://rubyforge.org/tracker/index.php?func=detail&aid=27955&group_id=5450&atid=21080

I am going to look over the code and see if I can be of any help.

On Thu, Mar 11, 2010 at 7:22 PM, Arun G. [email protected] wrote:

I did not find any evident issue using strace, it just seems to stop
    from java/io/File.java:207:in <init>'load’

  1. = 832
    open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/bin/…/lib/amd64/jli/libm.so.6",
    directory)
    munmap(0x7f90105ee000, 47351) Â Â Â Â Â = 0
    On Tue, Mar 9, 2010 at 7:33 PM, Hassan S.

Hassan S. ------------------------ [email protected]


To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, Mar 12, 2010 at 7:08 PM, Vivek P. [email protected]
wrote:

I am not sure how large the resources file set are but the exception is
really coming from the JDK/JVM itself. All the deployer trying to do is to
iterate thru the files in the directories.

I don’t understand why the deployer should try to traverse everything
in RAILS_ROOT. It is common practice to symlink assets into the public
dir in rails land, and in our case this just takes too much resources
to do. Maybe some configuration to exclude paths would be in order?

I see you are using jdk 6.0 build 7. Can you try using JDK6 b18 or so?

I could do that, but our assets are on the production server, and I
have no access to them on other environments. This is terabytes of
data which I cannot easily move around. What would such a test
accomplish?

Albert


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, Mar 12, 2010 at 5:38 PM, Albert R.
[email protected] wrote:

I don’t understand why the deployer should try to traverse everything
in RAILS_ROOT. It is common practice to symlink assets into the public
dir in rails land, and in our case this just takes too much resources
to do. Maybe some configuration to exclude paths would be in order?

There have also been occasional issues in JRuby with symlinks in
application dirs. Hopefully this isn’t a JRuby issue, but I wouldn’t
rule it out.

For example, we could be incorrectly recursing forever for a Dir glob,
or something. Anyway, chase GF for now and look at possible JRuby
issues if that seems to be a dead-end. Since it works in other
servers, I’d suspect GF right now.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Is there any way for me to check out the code?

the svn repo under:

https://glassfish-scripting.dev.java.net/source/browse/glassfish-scripting/

seems to be password protected?

On Thu, Mar 11, 2010 at 8:22 PM, Arun G. [email protected] wrote:

I did not find any evident issue using strace, it just seems to stop
    from java/io/File.java:207:in <init>'load’

  1. = 832
    open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/bin/…/lib/amd64/jli/libm.so.6",
    directory)
    munmap(0x7f90105ee000, 47351) Â Â Â Â Â = 0
    On Tue, Mar 9, 2010 at 7:33 PM, Hassan S.

Hassan S. ------------------------ [email protected]


To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Nevermind that, found the guest account :slight_smile:

On Tue, Mar 30, 2010 at 1:55 PM, Albert R.
[email protected] wrote:

-Arun

get my hands on any source. This is not in ruby code in the gf-gem, it

noticed when I leave the process on for a while it eventually bombs
    from com/sun/enterprise/deploy/shared/FileArchive.java:395:in
Stopping GlassFish!
{st_mode=S_IFREG|0644, st_size=10152401, …}) = 0
mmap(NULL, 9939680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
open("/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/amd64/server/libm.so.6",
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260>\0\0”…,
MAP_PRIVATE|MAP_ANONYMOUS|0x40, -1, 0) = 0x40f37000

To unsubscribe from this list, please visit:
To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I am not sure how large the resources file set are but the exception is
really coming from the JDK/JVM itself. All the deployer trying to do is
to
iterate thru the files in the directories.

I see you are using jdk 6.0 build 7. Can you try using JDK6 b18 or so?

-vivek.

On Thu, Mar 11, 2010 at 1:29 PM, Albert R.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs