Thursday January 08, 2009
Gmail.com - Temporary Error (500)
First Twitter
earlier today and now Gmail :(

And this is certainly
not new!
What's going down next ? ;-)
Technorati: gmail
Posted by Arun Gupta in General | Comments[7]
|
|
|
|
| Twitter.com - 500 Internal Server Error
And even the JavaScript widget is asking to login as:
Posted by Arun Gupta in General | Comments[6]
|
|
|
|
|
TOTD
#61 showed how to manage/monitor a Rails/Merb application
running using JRuby/GlassFish using standard Java tools. Both the
application and the management tools are running on the same machine.
But that's never the case in a production environment. Instead remote
management of an application is required when running in production
mode. Fortunately, similar set of tools can be used for remote
management as well.
However the underlying Java Virtual Machine needs to be configured to
enable remote monitoring. This is achieved by setting JAVA_OPTS
environment variables as shown below:
Set up the following envinronment variable before running the
Rails/Merb application:
| export JAVA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8686
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false" |
| service:jmx:rmi:///jndi/rmi://192.168.124.1:8686/jmxrmi |
| jconsole |



| include Java import java.io.IOException import java.util.HashSet import java.util.Set import javax.management.JMRuntimeException import javax.management.MBeanServerConnection import javax.management.MalformedObjectNameException import javax.management.ObjectName import javax.management.JMX import javax.management.remote.JMXConnector import javax.management.remote.JMXConnectorFactory import javax.management.remote.JMXServiceURL import org.jruby.management.ClassCacheMBean import org.jruby.management.ConfigMBean url = JMXServiceURL.new "service:jmx:rmi:///jndi/rmi://192.168.124.1:8686/jmxrmi" mbsc = JMXConnectorFactory.connect(url, nil).get_mbean_server_connection names = HashSet.new(mbsc.query_names(ObjectName.new("org.jruby:*"), nil)) names.each { |name| service = name.get_key_property "service" if service == "ClassCache" @cc_mbean = JMX.new_mbean_proxy(mbsc, name, Java::org.jruby.management.ClassCacheMBean.java_class) elsif service == "Config" @c_mbean = JMX.newMBeanProxy(mbsc, name, Java::org.jruby.management.ConfigMBean.java_class) end } # clear the cache if it's full if @cc_mbean.is_full puts @c_mbean.get_jit_max puts @c_mbean.get_jit_threshold puts @cc_mbean.get_class_load_count @cc_mbean.flush else puts "Class Cache is not full" printf "Loaded: %d, Reused: %d, Live: %d\n", @cc_mbean.get_class_load_count, @cc_mbean.get_class_reuse_count, @cc_mbean.get_live_class_count end |
Posted by Arun Gupta in web2.0 | Comments[3]
|
|
|
|
|
Today's Page Hits: 2379
Total # blog entries: 1002