This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Question3 for IBM Test 340

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What BEST describes setting the 'Minimum Heap Size' close to or equal to the 'Maximum Heap Size'?

A. High performance web applications waste more processing power on low performance functions.

B. Low performance web applications spend more processing power than necessary on low performance functions.

C. Can improve WebSphere Application Server start up.

D. Garbage collection cycles are more frequent that can affect performance.

I think should be D, but some ppl with C

---------------------------------------------------

A WebSphere Application Server V5.0 Administrator is attempting to understand WebSphere Connection Pooling. In which of the following examples should her application use WebSphere Connection Pooling?
(Select 3)

A. Whenever the application cannot tolerate the overhead of obtaining and releasing a database connection.

B. Whenever the application requires Java Transaction API (JTA) transactions within the WebSphere Application Server.

C. Whenever the application developers have implemented connection pooling in the code.

D. Whenever the application needs to share connections among multiple users.

E. Whenever the application manages the specifics of creating a connection, such as the database name, username, or password.

I go with A, C, E, but some ppl with A, B, D

Any idea ?
 
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On the heap size thing, i still don't understand how option D is not correct I think both C & D are correct.

On the connection pooling thing, the correct options are undoubtedly A,B & D.

We never "implement" connection pooling in the code. We leave that complex responsibility to the container. Also, when we create a datasource (for connection pooling), we associate JAAS authentication with it that takes care of the required authentication credentials to access the database.
 
Jason Hunt
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with you on the connection pool question,

but for heap size question, the WAS startup shouldn't be affected by setting the minimum heap size equal to maximum heap size, right ?

thanks.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think by setting max=min heapsize, we are utilizing the max possible heap and a good heap is going to help when the server is starting up as its going to initialize lots of things.
 
Jason Hunt
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But I think if only select one, D is stronger than C.

[ March 23, 2005: Message edited by: Jason Hunt ]
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now i got why the heap thing is not correct option. This is purely based on how the question has been framed. If we look at the question, it says "which of the following BEST describes ......". Hence we cannot say that we go for max=min heap size so that the garbage cycles get more frequent (slowing doing the performance). Instead, we can say that we do it so that the server starts up quickly.

I guess this confirms the selection.
 
Jason Hunt
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
that is really tricky.

thanks.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think
1)Heap Size
C. Can improve WebSphere Application Server start up.

2.-Connection Pooling
A. obtaining and releasing a database connection.
C.(get Datasource, get Connection, close Connection)
D. share connections
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic