AMuHb Lab

Sorry my Russian (или горите в аду).

  • Useless Buttons

  • RSS Mei Mei

    • test
      test Filed under: Uncategorized
      Axarova
  • RSS jujav4ik

    • Desktop wars: Are you serious?
      They still exist! No, really! KDE vs. Gnome vs. XFCE vs. blah-blah-blah Recent experience of switching among desktop environments proved one little thing to me.  Do you all know how easy is to change your desktop background? – Well, switching … Continue reading →
      andreyv
    • KDE 4.7.x: I’m staying
      It’s been more then few weeks of “KDE experiment” I got myself into. The fact that KDE has become my default desktop environment is a bit shocking for me as well, as I’ve been a big fan of Gnome. Recent upgrade … Continue reading →
      andreyv
  • RSS Heo

Archive for the ‘Oracle Software’ Category

Why a server may fall, case II.

Posted by amuhb on November 2, 2009

This case has no clear-cut solution, just a clarification:

Problem: Server crashed.

To be able to gather information, we had asked the customer to provide us with all the available log files – WebLogic log, the Standard Output, and the JVM log, to find the connections, and possibly – be able to identify the reason.

From its first lines, a JMV log file showed that it was a Java Virtual Machine crash, not WebLogic Server running on it:

# An unexpected error has been detected by HotSpot Virtual Machine:
#
# Internal Error (434F44452255464645520E435050005E 01), pid=15067, tid=8
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_11-b06 mixed mode)

As a number of other factors showed, a client had the Sun JVM installed – something beyond Oracle’s competency. We could only check whatever is was on the surface to see, it anything could trigger the crash.

We noticed the following line:

compacting perm gen total 63232K, used 63113K [0xf1800000, 0xf55c0000, 0xf9800000)
the space 63232K, 99% used [0xf1800000, 0xf55a25e0, 0xf55a2600, 0xf55c0000)

99% looked suspicious (which is true for any occasion), so we checked further:

jvm_args: -XX:MaxPermSize=128m -Xms1024m -Xmx1024m

Although unclear, shortage of memory could had been a reason of the crash. Just to make sure, we advised the customer to increase it to 512, or at least 256 mb.

In the end, we advices the customer to contact the Sun support, since they had a better cpecialty over their own Virtual Machine.

А вы чего, детектива ждали? :)

Posted in Requests and Solutions. | Tagged: , , , , | Leave a Comment »

Why a server may fall, case I.

Posted by amuhb on October 29, 2009

  1. WebLogic Server have limited, definable number of threads allowed at the same time. A request sent to the server would have to wait, if all of the threads are currently busy. Assumingly, it should not ever happen.
  2. Assumingly, once again, a routine request should come, be processed, and go, leaving a thread idle for the next request.
  3. Now, a separate fully functional software entity is not just a server. It is also a database, an OS, some custom-built libraries, hardware, etc. All of them are communicating with each other, and with a server, on a millisecond basis.
  4. Now, one of the problem, which may arise at any end of the system, at any point of time, and without a visible notice from the operator – is an event of one particular source start to send requests to the server, each of which would use one particular thread for an infinite time period. And another thread. And then – another. And another… Eventually, that one source can use all of the available threads with its requests, and force the server to crash, or restart itself, or do whatever is supposed to do in this case.
  5. The worst part is that this event can have its origins from anywhere, any part of the system – database, custom libraries, OS after an update… An operator would never know, what caused the crash.

Solution:

Check the Thread dumps, – a series of them, generated with equal intervals from one another. Compare and see, which thread are doing what during that particular period – this way, you will be able to see if any request takes suspicious and may be the cause.

Posted in Requests and Solutions. | Tagged: , , , | 2 Comments »

ADF Faces Random

Posted by amuhb on October 29, 2009

Recently, I had faced a trouble of corrupted IE, which would not run. One of the outcomes of this, among others, was an error message in JDeveloper, coming out after ten to fifteen seconds of waiting for an application to run.

Generally, I had an option – spend another half-an-hour to download IE again, or dig a bit in the JDev Preferences to specify another browser.

To make a long story short, here you go:

Tools –> Preferences –> Web Browser and Proxy –> Browser Command Line (just specify the .exe file of your Firefox).

Posted in Oracle Software | Tagged: , , , | Leave a Comment »

ADF Faces Skin WhatIs. Chapter II.

Posted by amuhb on October 29, 2009

Some Hints, more like a self reminder.

Семь Аццких Чипятей.

*******

Read the rest of this entry »

Posted in Oracle Software | Tagged: , , | Leave a Comment »

ADF Faces Skin WhatIs. Chapter I.

Posted by amuhb on October 28, 2009

  • Global style sheet, needs to be set only in one place for the entire application;
  • Any changes to the sheet will be picked by all the application components at runtime, no change to code is required;
  • Skins are based on CSS 3.0 syntax;
  • In addition to SCC File for Styles, there is also a resource bundle to determine test (like Next or Previous navigation buttons).

Creating the custom skin.

You create custom skin by extending the Simple skin and overriding the provided selectors. There are three different types of selectors:

Read the rest of this entry »

Posted in Oracle Software | Tagged: , , , | Leave a Comment »

Configuring T3 on cluster

Posted by amuhb on October 28, 2009

Can you please advice how can we configure T3 on cluster.
I am calling the service by using proxy service.

 

Posted in Requests and Solutions. | Tagged: , , , | Leave a Comment »

ADF Faces Part II

Posted by amuhb on October 28, 2009

What happens when you create a JSF Page.

Skeleton is being automatically generated. When displayed in JDev (Design tab), page is shown in the WYSIWYG Environment (Source tab - угадайте, что там, муа-ха-ха).

(May be omitted) Backing beans are created for each page, and stored in the \src directory of ViewController project. Managed bean entry is then created in the faces-config.xml file. No idea yet regarding ‘why do you need these backing beans’.

 

Adding ADF Faces components to JSF Page

Drag and drop them from the Components palette to the page layout (either in design view or the source). JDev is adding the correspoding code to the page (and the binding attribute for the backing bean).

Read the rest of this entry »

Posted in Oracle Software | Tagged: , , | Leave a Comment »

ADF Faces part I

Posted by amuhb on October 28, 2009

Some chunks of ‘how to use it’:

After create your application workspace, the next logical step is to design the flow of your UI. ADF Faces use navigation cases and rules to define this flow, definition of which is stored in the

Web Content/WEB-INF/faces-config.xml.

JDeveloper provides a diagrammer, through which you can define your page flow with icons.

Example:

Diagram

Read the rest of this entry »

Posted in Oracle Software | Tagged: , , , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.