Re: jvm exits without trace
On 27 March 2010 00:22, David Kerber dcker...@verizon.net wrote: BTW, after looking back at my development notes, the jdbc-odbc bridges, while a pain to set up, have better performance than the type 4 drivers that Sybase also offers. That's frightening, given the extra layers of code for the ODBC bridge. If I were Sybase, I'd be ashamed of my code quality - or trying to implement the missing features that cause your application to behave better with the ODBC bridge. - Peter
Re: jvm exits without trace
Peter Crowther wrote: On 27 March 2010 00:22, David Kerber dcker...@verizon.net wrote: BTW, after looking back at my development notes, the jdbc-odbc bridges, while a pain to set up, have better performance than the type 4 drivers that Sybase also offers. That's frightening, given the extra layers of code for the ODBC bridge. If I were Sybase, I'd be ashamed of my code quality - or trying to implement the missing features that cause your application to behave better with the ODBC bridge. Except that with the bridge, much of the work can be done in highly optimized C code (there's a separate driver for each platform), rather than in java, which probably makes up for the extra layer. In addtion, they say that ODBC is a native interface for SQLAnywhere, so there are fewer layers than most ODBC implementations would have. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /META-INF/context.xml is being copied to $CATALINA_HOME/conf/my_engine/my_app/ROOT.xml
Dave Cherkassky wrote: ... Just a note : in the setup you showed, most if not all Alias tags are unnecessary, since they just duplicate the name you have in the Host tag. You need an Alias tag only if you want to access the same virtual host through different DNS names. Like : Host name=www.company.com ... Aliasbigserver.company.com/Alias Aliassun03.company.com/Alias ... /Host Considering how java works, you'd probably be saving yourself a few dozen object instances just by removing those Alias things.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: httpd vs. Tomcat performance
Hassan Schroeder wrote: Just to get this into the archives for the next time it comes up http://tomcatexpert.com/blog/2010/03/24/myth-or-truth-one-should-always-use-apache-httpd-front-apache-tomcat-improve-perform because I don't know if the author (a certain mthomas) will mention it here. :-) Might this not also be worth preserving in the Tomcat FAQ/wiki ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: httpd vs. Tomcat performance
2010/3/27 André Warnier a...@ice-sa.com: http://tomcatexpert.com/blog/2010/03/24/myth-or-truth-one-should-always-use-apache-httpd-front-apache-tomcat-improve-perform Might this not also be worth preserving in the Tomcat FAQ/wiki ? There is http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring and it can be updated. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Win7 calling native code via JNI
Hello, I have a ROOT webapp running in Tomcat 6.0.20 as a SERVICE on Windows 7 and it runs fine calling native code via JNI. Now for debugging purposes : I'm trying to run it with tomcat not running as a service (tomcat started via startup.bat) and the load of my bridge dll is ok, but as soon as I call the dll's init function (CPPInit) it crashed the JVM. If you look at the code you will see I try to create a file on the root of the C drive (remotedebug.txt) and this file never gets created but I don't think that is what is causing the crash as CPPInit is called after this file create and CPPInit seems to be what's failing. See Code and JVM crash below. Native Code Header: /* * Class: com_companyinc_direct_remote_bridge_RLBridge * Method:cppInit * Signature: (Ljava/lang/String;Ljava/lang/String;I[I)I */ JNIEXPORT jint JNICALL Java_com_companyinc_direct_remote_bridge_RLBridge_cppInit (JNIEnv *, jobject, jstring, jstring, jint, jintArray); Native Code: JNIEXPORT jint JNICALL Java_com_companyinc_direct_remote_bridge_RLBridge_cppInit (JNIEnv *env, jobject obj, jstring rdb, jstring jdb, jint dbl, jintArray rtn) { int result; int version; jint *rtn_array; wchar_t *rdb_str = (wchar_t *)env-GetStringChars(rdb, 0); wchar_t *jdb_str = (wchar_t *)env-GetStringChars(jdb, 0); rtn_array = env-GetIntArrayElements(rtn, FALSE); const char *s1 = env-GetStringUTFChars(rdb, NULL); const char *s2 = env-GetStringUTFChars(jdb, NULL); //FILE *fp = fopen(C:\\remotedebug.txt, at); dbgout(CPP:Initializing bridge...); dbgout(s1); dbgout(s2); //dbgout(rdb_str); //dbgout(jdb_str); // Turn on debugging stuff so we can see it...remember to turn this off later! RSWP_DBL(dbl); dbgout(CPP:Debugging intialized.\n); result = RSWP_Volumes(rdb_str, jdb_str, version); //result = rswpINVALID; rtn_array[0] = version; dbgout(CPP:Bridge Initialized.\n); env-ReleaseStringChars(rdb, rdb_str); env-ReleaseStringChars(jdb, jdb_str); env-ReleaseIntArrayElements(rtn, rtn_array, 0); // Ok, now, we have to dig deeper if there's an error if (result == 2) // 2 means Dongle_INVALID, which is a catch-all for Paul { // Is this ACTUALLY a dongle error? if (RSWP_CheckHasp(TRUE) == 0) { // THis really isn't a HASP error, is it a DB error? if (RSWP_SetDataBase(TRUE, NULL, 0) == 0) { // Not a DB error either, let's return the WHO_KNOWS error (9) result = 9; } else { // This is indeed a DB error, set the right result result = 4; } } } JVM CRASH: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x77c42272, pid=2804, tid=3128 # # JRE version: 6.0_18-b07 # Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing windows-x86 ) # Problematic frame: # C [ntdll.dll+0x22272] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --- T H R E A D --- Current thread (0x050e5400): JavaThread http-80-3 daemon [_thread_in_native, id=3128, stack(0x05df,0x05e4)] siginfo: ExceptionCode=0xc005, writing address 0x0024 Registers: EAX=0x0024, EBX=0x349ec398, ECX=0x05b5c5f8, EDX=0x0005 ESP=0x05e3f578, EBP=0x05e3f58c, ESI=0x0024, EDI=0x0020 EIP=0x77c42272, EFLAGS=0x00010202 Top of Stack: (sp=0x05e3f578) 0x05e3f578: 050e5400 05b52eae 05b5c658 0x05e3f588: 05b5c034 05e3f5c0 05b52d56 0020 0x05e3f598: 05b52e56 050e5400 349ec398 0x05e3f5a8: 349ec398 05b5104a 05b5c048 0x05e3f5b8: 05b5c04c 05e3f5e8 05b510c2 0x05e3f5c8: 05b5c04c 04c911a0 050eb120 349ec398 0x05e3f5d8: 04cfc008 04c90fc0 04cfc428 000e5400 0x05e3f5e8: 05e3f634 02569f47 050e5510 05e3f654 Instructions: (pc=0x77c42272) 0x77c42262: 55 8b ec 83 ec 0c 56 57 8b 7d 08 8d 77 04 8b c6 0x77c42272: f0 0f ba 30 00 0f 83 5e 01 01 00 64 a1 18 00 00 Stack: [0x05df,0x05e4], sp=0x05e3f578, free space=13d05e3f05ck Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x22272] C [RRBridge.dll+0x2d56] C [RRBridge.dll+0x10c2] j com.companyinc.direct.remote.bridge.RLBridge.cppInit(Ljava/lang/
RE: Win7 calling native code via JNI
From: Patrick Flaherty [mailto:pflah...@rampageinc.com] Subject: Win7 calling native code via JNI as soon as I call the dll's init function (CPPInit) it crashed the JVM. Are you using the same JVM when you run Tomcat as a service? The one in this crash is the 32-bit client, but you're on a 64-bit platform, and I wouldn't be surprised that the service is using a 64-bit server JVM (assuming you have one installed). If you look at the code you will see I try to create a file on the root of the C drive (remotedebug.txt) and Does the account you're running on have permission to do that? (Win7 is a tad picky about things like that.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Win7 calling native code via JNI
Caldarale, Charles R chuck.caldar...@unisys.com wrote in message news:99c8b2929b39c24493377ac7a121e21f96d2507...@usea-exch8.na.uis.unisys.com... From: Patrick Flaherty [mailto:pflah...@rampageinc.com] Subject: Win7 calling native code via JNI as soon as I call the dll's init function (CPPInit) it crashed the JVM. Are you using the same JVM when you run Tomcat as a service? The one in this crash is the 32-bit client, but you're on a 64-bit platform, and I wouldn't be surprised that the service is using a 64-bit server JVM (assuming you have one installed). It wouldn't even get that far if he tried to load a 32-bit dll in a 64-bit JVM. My guess is an incompatibility in the MSVCRT.dll versions. If you compile the JNI dll with a newer version of MSVC, then you can see weird crashes like this. If you look at the code you will see I try to create a file on the root of the C drive (remotedebug.txt) and Does the account you're running on have permission to do that? (Win7 is a tad picky about things like that.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: httpd vs. Tomcat performance
Thanks for the link. au http://www.xprad.org/ Hassan Schroeder-2 wrote: Just to get this into the archives for the next time it comes up http://tomcatexpert.com/blog/2010/03/24/myth-or-truth-one-should-always-use-apache-httpd-front-apache-tomcat-improve-perform because I don't know if the author (a certain mthomas) will mention it here. :-) (via @springsource on Twitter) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/httpd-vs.-Tomcat-performance-tp28023360p28056376.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying a simple webservice for testing on tomcat gives HTTP 404
Have you checked the URL path from the Tomcat manager page is correct ? On Fri, Mar 26, 2010 at 6:59 PM, SM moni_spar...@yahoo.com wrote: Hi all, I developed a simple web service and deployed it on Tomcat 6.0.24 and when I debug on server it gives me http 404. There are no errors in the tomcat log. HTTP Status 404 - /Axis2WSTest/ type Status report message /Axis2WSTest/ description The requested resource (/Axis2WSTest/) is not available. Apache Tomcat/6.0.24 Please let me know how to debug this further. Thanks,Monisha
Re: sticky session failover
Len, Do you have a the nofailover parameter disabled ? this can help users continue served by the working tomcat instances in-case of the tomcat instance which cookie parameter set fails / not available. Proxy balancer://abc BalancerMember ajp://prod1:8081 route=app1 BalancerMember ajp://prod2:8081 route=app2 BalancerMember ajp://prod3:8081 route=app3 ProxySet stickysession=JSESSIONID ProxySet nofailover=Off /Proxy On Fri, Mar 26, 2010 at 5:21 PM, Len Takeuchi ltakeu...@jostleme.comwrote: Hello, I have apache load balancing a number of tomcat instances using mod_jk using sticky session. This is all working with the session id having the jvmRoute appended. I am storing the session using persistent manager using jdbc. I want to have failover for session as supported by JvmRouteBinderValve. Is this possible to set up in an environment where multicast is not supported? Do I need to set up a Cluster though I don't need session replication since I'm using persistent manager for session storage so all tomcat instances have access to session data? What I want is just the JvmRouteBinderValve behavior of changing the session id to the new jvmRoute and setting cookie when a tomcat instance receives a session request from a different jvmRoute. Regards, Len
Re: Win7 calling native code via JNI
There is only a 32 bit JVM on the machine. The bridge dll has not been recompiled since mid '08. If it was an incompatibility with the Microsoft Runtime Library wouldn't you expect the Service Version to do the same ? If you look at the code you will see I try to create a file on the root of the C drive (remotedebug.txt) and The file does get created via the Service but not standalone, weird. If it was crashing as a result of the file creation, would you expect to see the CPPinit at the top of the stack trace ? Thanks again -- From: Bill Barker billwbar...@verizon.net Sent: Saturday, March 27, 2010 7:45 PM To: users@tomcat.apache.org Subject: Re: Win7 calling native code via JNI Caldarale, Charles R chuck.caldar...@unisys.com wrote in message news:99c8b2929b39c24493377ac7a121e21f96d2507...@usea-exch8.na.uis.unisys.com... From: Patrick Flaherty [mailto:pflah...@rampageinc.com] Subject: Win7 calling native code via JNI as soon as I call the dll's init function (CPPInit) it crashed the JVM. Are you using the same JVM when you run Tomcat as a service? The one in this crash is the 32-bit client, but you're on a 64-bit platform, and I wouldn't be surprised that the service is using a 64-bit server JVM (assuming you have one installed). It wouldn't even get that far if he tried to load a 32-bit dll in a 64-bit JVM. My guess is an incompatibility in the MSVCRT.dll versions. If you compile the JNI dll with a newer version of MSVC, then you can see weird crashes like this. If you look at the code you will see I try to create a file on the root of the C drive (remotedebug.txt) and Does the account you're running on have permission to do that? (Win7 is a tad picky about things like that.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org