Win a copy of Securing DevOps this week in the Security forum!

mohammad shadab

Ranch Hand
+ Follow
since Jul 09, 2013
mohammad likes ...
Eclipse IDE Oracle
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
6
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mohammad shadab

I do understand  tomcat connection pooling uses flyweight framework? is that valid?
8 months ago
Just think will program will execute on its best .
same output can be produced in 10 minutes by writing dirty code . And same output can be produced in 5 minutes using good code.

consider your memory consumption
consider time it takes to execute
consider any blackhole which can make your program to run for long time or for infinite time (example infinite loops)
know number of user will use program, let say you have 100 MB mory to run program and your program reads some data thru buffers and yiu set buffer size 5 MB so as soon as 20 user start using same program (20*5=100) you will run out of memory and program will halt, so know numver of user and custimize your things.
consider if you are i tracting with database , database has optimized queries.
consider your program does not run to fetch un necessary data from db.
consider you database not loaded with hell number of queries, try to group quries.
consider you do use connevtion pooling for db .

If you can tell which type of program you are talking about  then there is alot to speak.
8 months ago
Not sure you are using correct terms to explain your requirement, do you want to build an application which can be consumed by other apps to do money trabsactions or you want to build an app which can allow payments like how you can make payment on flipcart?
8 months ago
Why do you need path? why do you need client file path on server?
you submit your request you will be having file content on server along with file name, now its upto you to what path you want to save it.
any suggestion , i am feeling discussion os going away.
8 months ago
JSP
Hello all,

I want to make an ajax call after receive 10 seconds to see the session status on a page , But as i know on every call to server session will be refreshed and again tome out will be reset , What is the best policy to find remaining session's time without resetting it through ajax.

Is there any way to exclude a URL which should not reset session, And this url just responsible to get session information through ajax?

8 months ago
JSP
Hello ,

I am aware in java there is a method size limit 64k , I want to know is there any workaround for this problem . My JSP does not contain any static include . I am running with tomcat 8.5 version . It does well on lower versions of Tomcat.
I have tried changing web.xml available inside tomcat's conf directory , Following are the tags i havce used. Did java 8 change any thing in JVM or Tomcat Container got changed  any thing while translating JSP ? Because same code runs well with java 7 along with Tomcat 7.
8 months ago
JSP
Basically i am using dbcp connection pooling , And in order to see the statistics of my app i want to know following parameters any point from the dbcp pool :-

1) Number of active connections
2) number of idle connections

Any idea will be great.

Thanks
Shadab.
Hello,

I am trying to get the number of active connections using BasicDataSource object like following



Using above code , I am expecting following output



But always i do get zero as NumActive and NumIdle. Please suggest how can we get these .

Thanks
Shadab.
Hello,

I am using tomcat's DBCP pool setting , My resource tag in context file is as below



When i get the new connection i receive the object of javax.sql.DataSource , I want to see the number of active,idle,total pool size from the connection at some point .
I do not find any method of  javax.sql.DataSource class which can return me these things. Please suggest if any way to find these trhu program.

Thanks.


My tomcat is getting shutdown on its own without telling any reason or showing nay error message , I have researched and found there could be two reason
1) Memory getting exhausted (out of memory problem)  , to identify this i am using java settings to give me heap dump whenever this error occurs.
2) Some library is calling System.exit - I am not able to trace this call.

Please let me know if we can find out the class calling System.exit?

Thank You.
1 year ago
Hello,

I have a single spring context which deal with multiple databases(total 5 databases) based on requests. I have set my db pool setting as below



Now my question is , this pool settings will be for whole context or for each database. Let say i says maxidle=8 so there can maxidle=8*5  or it would be always just for all 5 Databases.

Thanks
1 year ago
Hii,
Today i was reading one blog about hibernate's db schema creation. Peoples say its not good practice to generate db schema with the help of hibernate.
could you please point out the things why it is not good?

Thanks.