lochan serma

Greenhorn
+ Follow
since Apr 22, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by lochan serma

Can't we use 1.5G of heap memory in Windows Server 2003(32 bit) with 4G of RAM?
11 years ago
Does anyone has experience in rebasing DLLs? I would like to identify offending DLL(s) and be able to create my JVM with heap space of 1536MB for windows 32 bit server (4GB RAM). I currently cannot exceed 1280MB limit of heap space for my jvm. I feel 1280 MB is not the upper limit for heap size and we can increase the size to 1.5GB.

Any suggestion would be greatly appreciated.
11 years ago
Thanks for the reply but the thing is we are running with 1536MB of heap memory on another identical machine. Only in this machine, we are having this issue. Is virtual memory fragmentation in play here?
Any idea about defragmenting virtual memory?
11 years ago
Hi, I am on a 32 bit Windows Server 2003 machine with 4 GB of RAM. I get "error occurred during initialization of VM
Could not reserve enough space for object heap" message everytime i try to allocate more than 1280 MB (i need to allocate 1536 MB) of heap space. Tomcat 5.5 is running as a windows service on this machine.
Can anyone suggest anything on this?
Thanks.
11 years ago
Hi,

I wonder if anyone could please help.

I have configured two jboss instances to run on different ports on a single server using service binding manager. Each of these instances host different application.The servers are up and working fine.

Now as I was using apache's mod_jk module(one worker) to serve dynamic contents and apache simply serving static webpages before, when there was only one jboss instance. I wonder if i can define two workers(one for each jboss instance) each listening on different AJP ports and serving requests for jboss instance to which it is assigned.

If it makes sense to anyone there, Please suggest!!

Thank You
Lochan
12 years ago
Hi Pete,

Thank You so much for your valuable suggestion. Just wanted to know if Jboss Deployment scanner would scan those static files too, placed inside the deploy folder. Or is it that the scanner scans only for the jsp and other dynamic files.

You were correct, I was talking about static files.

Thank You
Lochan
12 years ago
Hi,

Sorry, if this is a silly question.

But I would like to know the effect on JBOSS performance with respect to the size of the deployed WAR file. We have a huge WAR file in our production server(keeps on increasing due to exported files dumped inside its subfolder) and wonder if the increasing size of the WAR folder adversely affects the jboss performance.

Any suggestions on this topic would be greatly appreciated.

Thank You
Lochan
12 years ago
Hi,

Could anyone please help! I am getting following NullPointerException while deploying my application. Could you please tell me the root cause of this exception.

org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.myaccount_jsp._jspService(org.apache.jsp.myaccount_jsp:1203)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)

Thank You in Advance.
Lochan
12 years ago
Hi,

I would like to configure my log4j.xml so that it logs only WARN and higher level logs for the FILE appender(server.log) for all categories. However, i would like to leave the default INFO priority to CONSOLE appender as it is.
Any one with helping hands please.

Thank You.
12 years ago
Hi Peter,

I used CachedConnectionManager to detect connection leaks and JBoss successfully closed open connections for me resulting very few InUseConnectionCount. However, it also closed the result sets in our application. Could you please help me set some fixed time interval after which the connections could be closed by Jboss? I could not figure out how JBoss determines which connections are totally inactive. Result Sets do need to exist for some time but i feel JBoss tries to close them immediately.

Any support on this issue would be greatly appreciated.

Thank You
Lochan
12 years ago
Hi Peter,
Thank you so much for the reply and sorry for the confusion. Actually I was depicting the value connectionTimeout="20000" for the AJP port. The http port is not in use and has been commented.

Here is what the mssql-ds.xml file looks like.

<datasources>
<local-tx-datasource>
<jndi-name>DS</jndi-name>
<connection-url>jdbc:sqlserver://xxx.xxx.xxx.xxx:1433;database=abc</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>user</user-name>
<password>password</password>
<min-pool-size>500</min-pool-size>
<max-pool-size>4000</max-pool-size>
<blocking-timeout-millis>10000</blocking-timeout-millis>
<idle-timeout-minutes>5</idle-timeout-minutes>

<check-valid-connection-sql>SELECT 1</check-valid-connection-sql>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>MS SQLSERVER2000</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>

We have set the max-pool-size to 4000. I was eager to know why our ConnectionCount is always rising and not resetting even when the application is idle. Since the timeout is set to 10 seconds i was thinking that the connection count should decrease as the connections are timed out. Please help me if i have misunderstood. Also the InUseConnectionCount has a value in thousands even when the application is idle. Do they increase until the AvailableConnectionCount reaches the MinSize? Shouldn't they reset after the connections are terminated?

Any help will be greatly appreciated.
Thank You
Lochan Serma
12 years ago
Hi there,

I would like to know if there is some problem with our configuration. We are using JBoss 4.0.3SP1 and AJP port fronted by apache using mod_jk. Our service.xml file looks like this:



Currently, JMX console shows following stats for ManagedConnectionPool:



What I feel abnormal is the InUseConnectionCount. It's unlikely that an application at no load uses 2252 connections. Also i think the setting connectionTimeout=20000 for AJP port is not functional, even though the server.log shows connection timed out sequences. I wonder about the difference in value of ConnectionDestroyedCount and ConnectionCreatedCount which is greater than 3000 which clearly shows that connections are not being closed properly.
Can anyone give any idea about this?
I am hopeful.

Thank You
Lochan Serma
12 years ago
Hi there,

I am using mod_jk to connect apache and TomCat in JBoss for load balancing. Meanwhile i am getting following info logs in my mod_jk.log file.

ajp_send_request::jk_ajp_common.c (1215): (node1) error sending request. Will try another pooled connection
ajp_send_request::jk_ajp_common.c (1241): (node1) all endpoints are disconnected
ajp_send_request::jk_ajp_common.c (1244): (node1) increase the backend idle connection timeout or the connection_pool_minsize
ajp_service::jk_ajp_common.c (1941): sending request to tomcat failed, recoverable operation attempt=1

Do anyone have any idea about it?
Thank you for your time and concern.

Lochan.
12 years ago
Thanks Peter,

But I have already viewed that article.
12 years ago