Re: i18n Struts Jco Code in Tomcat on Windows English and Polish System
Take care that the SAP side is also capable of UTF-8. Your basis team might have to do a unicode migration first. regards Dirk Original-Nachricht Datum: Fri, 23 May 2008 16:22:08 +0530 Von: Raghuveer [EMAIL PROTECTED] An: \'Tomcat Users List\' users@tomcat.apache.org Betreff: i18n Struts Jco Code in Tomcat on Windows English and Polish System I am working on Struts ,SAP-JCO . This is i18n application running on Tomcat. I have designed my application in UTF8 charset. When Saving the polish characters from application they are saved into SAP Database properly. Before Saving i am doing following String modifications. The same code doesn't work on Tomcat Server on Windows English System.Here the Polish characters( aeclónszz ) are saved as #. What would be cause for this. What changes i need to do in my code to work on both English And Polish Windows (Tomcat Server) strConvertedMessage = new String(strText.getBytes(UTF8), UTF8); inputTable.setValue(strConvertedMessage,TABLENAME); -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Testing performance and scalability
Hi, this will likely depend on how much resources you can throw at your performance test tools. JMeter for instance can work in master/slave mode. So the overall count of simulated users will depend on how much threads your operating system will make available to the jvm running jmeter (of course depending on your test cases) times the hardware you can spend on your tests. You also want to take into to account the network resources available to you as a limiting factor for your tests. regards Dirk Original-Nachricht Datum: Wed, 14 May 2008 16:47:39 -0400 Von: [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Testing performance and scalability We are developing a website that will likely be hit by up to half a million users. Our first concern is obviously performance and scalability, but am wondering how best to test this? Most stress tools I've see only simulate in the order of a thousand users. Would be grateful for suggestions cheers, David -- 249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro. Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of Hibernate
Hi, Original-Nachricht Datum: Sun, 6 Apr 2008 19:37:04 -0700 (PDT) Von: Sam Wun [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Usage of Hibernate Hi, I am new to Hibernate. From googl'ing around, I found that Hibernate is designed for mapping object classes and database. But this doesn't entirely solve my puzzle on this framework, that is what it's distinct advantage over simple usage of JDBC? UnlessHibernate has another important/popular usage rather than only dealingwith database, I would think this is may be the only reason whyHibernate getting more popularity. Can anyone tell me? Have a look over at http://www.hibernate.org/344.html. regards Dirk -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection Pooling
Hi, you should try to use a dedicated worker process for connections. Oracle by defaults spawns (some) worker processes for incoming connection requests which are shared (i.e. not dedicated to a certain user). Setting your connection count to a high number will probably result in an equally high number of worker processes used. So try to use a dedicated connection: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT = 1521)))(CONNECT_DATA=(SID=ORCL)(SERVER=DEDICATED))). You will have to use the jdbc driver supplied by Oracle though to get this working (you can use a recent version (i.e. = 10.x.y.z) with Oracle 9i). For further (and exact) information on this topic ask your local oracle database administrator. regards Dirk Original-Nachricht Datum: Wed, 27 Feb 2008 11:56:36 +0530 Von: abhishek reddy [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Connection Pooling thanks Mr Adam Gordon for the reply, Can u tell me how to determine why oracle is generating those many processes? Also tell me where to check the number of oracle processes in use and how to reduce it? abhishek reddy wrote: Here are the pool configuration details in context.xml file. Resource name=jdbc/pool auth=Container type=javax.sql.DataSource username=scott password=tiger driverClassName=sun.jdbc.odbc.JdbcOdbcDriver url=jdbc:odbc:pool maxWait=6 removeAbandoned=true maxActive=130 maxIdle=50 removeAbandonedTimeout=300 logAbandoned=true / software: database : oracle 9i server: tomcat 5.5 iam getting the following error: java.sql.SQLException: [Oracle][ODBC][Ora]ORA-00020: maximum number of processes (150) exceeded. I have set the maxActive to 130 then how will the number of processes exceeds 150? tell me when will the maximum number of processes (150) exceeded in the oracle and how do i solve the problem? I have checked the application 5 to 10 times and there is no connection leakage problem. the application is under going performance testing.with around 200 users at a time, for the first time it worked perfeclty, next time the above mentioned error is comming.. i need your help in solving this problem.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Abhishek - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TPTP and Tomcat
Hi, have a look at the following presentation: http://www.eclipse.org/tptp/home/documents/tutorials/viewlets/v4.1/WTP/WTP_TPTP_viewlet_viewlet_swf.html Be sure you don't use MyEclipse since they disable certain features in the original eclipse installation that conflict with their own version so your mileage may vary there. regards Dirk PS: I have not tried what the eclipse team shows in the presentation since i use yjp to do some profiling. So i'll likely not be able to answer questions about the integration of tptp especially attachment to processes running remotely... Original-Nachricht Datum: Tue, 5 Feb 2008 15:10:31 +0530 Von: Arun [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: TPTP and Tomcat I am talking about tptp. Is not it a fully fledged one? I just dont know how to profile a web appplication running outside my eclipse 3.2. On 2/5/08, Leon Rosenberg [EMAIL PROTECTED] wrote: that depends on what you want to profile and how muc hmoney you want to spend. some sites to look into moskito.anotheria.net www.lambdaprobe.com www.yourkit.com http://www.quest.com/jprobe/ regards Leon On Feb 5, 2008 7:25 AM, Arun [EMAIL PROTECTED] wrote: Hi, I am new to profiling. Can anybody give me an idea as to how I can profile a war file deployed in resign under eclipse 3.2. My Resin is running outside eclipse3.2. I cannot find a way to attach the webapp to profiling framework from eclipse. Please help? -- Thanks Arun George - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Arun George -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Release Management and Deployment
Hi, have a look at AntHill (http://www.urbancode.com) and CruiseControl (http://cruisecontrol.sourceforge.net/). regards Dirk Original-Nachricht Datum: Fri, 16 Nov 2007 16:46:39 +0100 Von: Andrew Miehs [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: [OT] Release Management and Deployment On 16/11/2007, at 4:09 PM, Martin Gainty wrote: 2 options-Tried and true Ant which is rock solid reliable, easily configurable and a user-friendly user-list where a resource will respond in 24 hoursmore information available athttp://ant.apache.org/Maven..complex environment with heavy reliance on repositories and plugins..If any attribute is incorrect such as groupId/artifactId/versionor plugin repositories are inaccessible or you have a file system which doesnt support the default repository of .m2 then nothing works whats more there is no user-list (at least from what I've seen thus far) available..On the plus side maven's ability to configure internet site repositories is probably maven's most powerful featurehttp://maven.apache.org/ HTH/ Thanks Martin, Maven and Ant are both great tools - they are great for building a Release and Deployment platform, but in the are not that in themselves. I probably should have said that I am looking for a web based system, than can use whatever - maven, ant, make, shell... but provides a friendly environment to track releases, publish software, etc... Thanks Andrew -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: speed up the server
Hi, you could use a profiler to find the slow part of your application. regards Dirk Original-Nachricht Datum: Wed, 7 Nov 2007 02:21:30 -0800 (PST) Von: tbt [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: speed up the server Hi I'm a newbie to tomcat and i'm using it for a web application. But currently the application is running a bit slow once deployed. Are there any ways to speed up the request/response time in tomcat. Thanks -- View this message in context: http://www.nabble.com/speed-up-the-server-tf4763782.html#a13624531 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: All threads busy + OutOfMemoryError
Hi, have a look at this blog: https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6433 Perhaps you find the described tool (SAP Memory Analyzer) useful for inspecting your memory dump. regards Dirk Original-Nachricht Datum: Tue, 23 Oct 2007 10:43:39 +0200 Von: Peter Bauer [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: All threads busy + OutOfMemoryError Hi all, i thought i had solved the All threads busy problem by implementing a dedicated servlet class for forwarding requests but maybe i was wrong or there is another problem. During a loadtest last night i got the following lines in the catalina.out: 23-Oct-2007 02:24:36 org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (75) are currently busy, waiting. Increase maxThreads (75) or check the servlet status java.lang.OutOfMemoryError: Java heap space Dumping heap to /var/log/dmc/java_pid29947.hprof ... Heap dump file created [272845160 bytes in 6.892 secs] 23-Oct-2007 02:29:22 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError: Java heap space As you can see a dumpfile of the heap has been created. Additionally the exceptions can be found in the attached localhost_log file. I already opened the dumpfile in Yourkit 7.0 but i have no clue how such a dump normally looks like and how to search a memory leak. Maybe someone could give me a hint how to track down the potential Memory Leak. I attached the files, please take a look at them. The compresses heapdump file has about 5MB so i cannot send it to the mailing list, but can send it directly if somebody needs it. thx, Peter -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
restrict access to application via RemoteHostValve
Hi, i'd like to restrict access to an application for a time using the RemoteHostValve in Tomcat. Since we host that application for our user base it won't suffice to greet them during the duration of restricted access with a 403 permission denied reply. Is there a possibility to provide a message using the RemoteHostValve? Or is the solution to extend RemoteHostValve supplying a message that can be displayed in the users browser? regards Dirk -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stress test on tomcat
Hi, --- Ursprüngliche Nachricht --- Von: William Mok [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: stress test on tomcat Datum: Wed, 16 Nov 2005 14:57:21 -0800 - 16-Nov-2005 2:44:30 PM org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files William You are running into resource limits posed by your operating system. It would help btw. if you'd reveal it to us. On Linux you can change this value using sysctl or the proc-file system. regards, Dirk -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]