Why is it necessary to create an instance via the static method?
Hi,
For some classes (such as java.util.regex.Pattern), we should call the class method (static method) in order to create an instance (object).
For example, in order to conduct the pattern matching, we should use the java.util.regex.Pattern class as follows:
Pattern p = Pattern.compile ("X[0-9]+X") ;
// An instance of the Pattern class is created.
Matcher m = p.matcher ("abcX1XYX23Xz") ;
while ( m.find() ){
System.out.println ( m.start() ) ;
}where the compile static method in the Pattern class creates an instance and returns the pointer (reference) of it. We should NOT call
the constructor of the Pattern class as follows:
Pattern p = new Pattern ("X[0-9]+X") ; // ERRORThe question is the following:
(1) In what scenes, do we develop the classes that force users to call the static method for creating an instance of it?
(2) Why do the java.util.regex.Pattern class have such a specification?
Thanks in advance.
(1) In what scenes, do we develop the classes that force users to call the static method for creating an instance of it?1. As the other author mentioned, caching is one reason.
2. With such caching, you don't need to take trouble in passing the reference of a cached object(s) to many places in your code. From anywhere in your code base, you can simply invoke the method, the object will come. In essence, the static method provides a global point of access to one or more pre-created (or cached) objects. Hence, the static method simplifies access to the object.
3. Sometimes, the actual class instantiated is not the same as the one with the static method. This allows abstraction of underlying variations. For example, when you say Pattern.compile ("X[0-9]+X") , the returned object type can be different in Windows and Linux (Most probably Pattern class doesn't work like that, but I am showing you a use case. May be Runtime.getRuntime() does actually work like that.). You find this abstraction of variations in many places. Take for example, FacesContext.getExternalContext() method (this is from JSF API). ExternalContext documentation says this:
"This class allows the Faces API to be unaware of the nature of its containing application environment. In particular, this class allows JavaServer Faces based appications to run in either a Servlet or a Portlet environment."
Edited by: Kamal Wickramanayake on Oct 24, 2012 8:04 AM
Similar Messages
-
Why is the static method in the superclass more specific?
Why is the static method in the superclass more specific than the static method in the subclass? After all, int is a subtype of long, but Base is not a subtype of Sub.
class Base {
static void m(int i){ System.out.println("Base"); }
class Sub extends Base {
static void m(long l){ System.out.println("Sub"); }
class Test {
public static void main(String[] args) {
int i = 10;
Sub sub = new Sub();
sub.m(i);
}The first example compiles without error.
Output: Base
class Base {
void m(int i){ System.out.println("Base"); }
class Sub extends Base {
void m(long l){ System.out.println("Sub"); }
class Test {
public static void main(String[] args) {
int i = 10;
Sub sub = new Sub();
sub.m(i);
}In the second example, both instance methods are applicable and accessible (JLS 15.12.2.1), but neither is more specific (JLS 12.2.2), so we get a compiler error as expected.
: reference to m is ambiguous,
both method m(int) in Base and method m(long) in Sub match
sub.m(i);
^
1 error
Why don�t we get a compiler error for the static methods?Thank you for your ideas.
====
OUNOS:
I don't get Sylvia's response. This is about static methods, what are instances are needed for??Yes, the question is about static methods. I included the example with non-static methods for a comparison. According to JLS 15.12.2, both examples should cause a compiler error.
And why you create a Sub object to call the method, and dont just call "Sub.m(..)"Yes, it would make more sense to call Sub.m(i). Let�s change it. Now, I ask the same question. Why is there no compiler error?
====
DANPERKINS:
The error in your logic stems from calling static methods on instances, as ounos pointed out. Solution: don't. You won't see any more ambiguities.A static member of a class may also be accessed via a reference to an object of that class. It is not an error. (The value of the reference can even be null.)
Originally I was looking only at the case with non-static methods. Therefore, I used sub.m(i). Once I understood that case, I added the static modifiers. When posting my question, I wish I had also changed sub.m to Sub.m. Either way, according to JLS 15.12.2, a compiler error should occur due to ambiguous method invocation.
====
SILVIAE:
The question was not about finding an alternative approach that doesn't throw up an ambiguity. The question related to why, in the particular situations described, the ambiguity arises in only one of them.
Yes.
Proposing an alternative approach doesn't address the question.
Yes.
====
If anyone is really interested, here is some background to the question. Some people studying for a Sun Java certificate were investigating some subtleties of method invocations:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=24&t=019182
I remember seeing the non-static case discussed in this forum once before in a more practical context. jschell probably knows the link. -
How to create a instance for the method
it is showing me dump error for the call method
data: i_tab type /SCMB/DM_ORDER_TAB,
grid1 TYPE REF TO /SCA/CL_SVORDER .
CALL METHOD grid1->READ_BY_IDS
EXPORTING
IS_CTRL =
IV_ORTYPE = gt_po_detl-ortype
IV_LOCKFLG = /SCMB/CL_C_ORDER=>GC_FALSE
IV_NOADDRESS = /SCMB/CL_C_ORDER=>GC_FALSE
IV_MAPID = /SCMB/CL_C_ORDER=>GC_FALSE
IV_DUEQUAN = /SCMB/CL_C_ORDER=>GC_FALSE
IT_ORDERID = itab_orderid
IMPORTING
ET_ORDERS = i_tab
ET_PROT =
u r attempting to use a null object reference access a component (variable 'GRID!")
an object reference must point to an object (an instance of a class ) before it can be used to acess a component either the reference was never set or it was set to null using the clear statementsridhar loganathan,
A ABAP Class is just a definition of fields/variables called attributes and routines (like in standard ABAP forms and functions) called methods. Also you can have events, don't care about before necessary.
The definition itself is just a blueprint. Nothing exists, nothing can be used before you create an instance for this definition.
DATA: grid1 TYPE REF TO /SCA/CL_SVORDER creates a 'handler' for ( to be created) instances of the class.
The statement CREATE OBJECT grid1 creates an instance of the class as defined in the 'blueprint' and assigns the reference to this instance (with all methods, attributes and events) to reference field grid1.
In 999 of 1000 cases SAP creates just one object of a class. In those cases the definition of classes and uses of object oriented programming is more or less obsolete.
Anyway: Just keep in mind that you can not uses attributes and methods of the class directly (blueprint!) but only of the instance created.
An Exception to be noted are so-called Static attributes and methods where an instance is not required. Example ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB gives the character for horizontal tab regardless of platform and char encoding (unicode!). Class ABAP_CHAR_UTILITIES defines static attribute HORIZONTAL_TAB - no instances necessary because this will never change in a given system.
Hope this sheds some light on it
Regards,
Clemens -
Unable to create an instance of the Java Virtual Machine
I hope someone can help me to encounter this problem. Well, I have read the instruction over and over on how to setup SQL Developer.
The version i have installed Oracle Database 11g Express Edition and downloaded sqldeveloper-4.0.0.13.80-no-jre and the jdk version 1.7.0_45. Problem is when setup oracle sql developer, pop-up screen highlight on
Unable to create an instance of the Java Virtual Machine
Located at path : C:\Program Files/Java/jdk1.7.0_45\jre\bin\client\jvm.dlll.
I have select the path earlier stage and direct to the C:\Program Files/Java/jdk1.7.0_45 ONLY FOLDER. It turns out to this error.
At the cmd screen error message as below :
Error occurred during initialization of VM
Could Not reserve enough space for object heap
Anyone do give me advise on how to solve this issue. Thank's alot.What I did was:
Use
Windows Explorer to browse to C:\Users\user\AppData\Roaming\sqldeveloper\1.0.0.0.0Open
product.conf with wordpad
Go
to the bottom of the file
Uncomment
the 32 bit entry and change it to:Add32VMOption -Xmx512m -
How to create an instance of the database
No that won't work. I have to set it up independant from each other because I can't get to Uni until Monday and I want to have this done over the weekend really.
The main issue seems to be now how to create an instance of the databaseTo create a database:
you first connect as internal (user) with the passeword 'oracle'
the syntax is: connect internal/oracle
You type in this script:
STARTUP NOMOUNT PFILE=$PFILE
CREATE DATABASE db01
LOGFILE
GROUP 1 ('c/oracle/oradata/db01/redo_01a.log',
'c/oracle/oradata/db01/redo_01b.log'
) size 100k,
GROUP 2 ('c/oracle/oradata/db01/redo_02a.log',
'c/oracle/oradata/db01/redo_02b.log'
) size 100k
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXLOGHISTORY 1
DATAFILE 'c/oracle/oradata/db01/system01.dbf'
size 7M
MAXDATAFILES 254
MAXINSTANCES 1;
This script could be modified to reflect the features you want for your database.
db01 = the name you can give to your database
Good luck,
Henri -
Unable to create an instance of the Calendar Server after installation
After installing Calendar Server, I am unable to create an instance of the
Calendar Server. Instead, I receive the following error:
<P>
Error: "Authentication Credentials could not be obtained from the
Admin Server"
Check the /users/unison/misc/unison.ini
file, under the
[LDAP] section, to
verify that the correct LDAP host and baseDN are set. The settings
should appear as follows:
<P>
[LDAP]
basedn=<I>YourBaseDN</I>
host = <I>YourHostname</I>
port = <I>Port</I>Hi,
I've got the exact same problem when launching to JDeveloper.
And I've searched on internet for days.
I did try to modify the number of
MaxPermSize in jdev.conf
and
Xmx and Xms in ide.conf
I've tried several combinations, and sometimes it works.
The disappoint fact is that even with the same combination of the settings, sometimes it works and sometimes it doesn't.
Sometimes it just work. Sometimes it doesn't...and after rebooting it works again......Sometimes even rebooting doesn't help.......Sometimes when change MaxPermSize to a smaller number it works...and next time it may not work again....Sometimes you change the MaxPermSize to some other number, save, and then change it back,,,,and it works again...but next time you try to use it, it may not work..........
I don't know what leads to these problems.....anyone could help? Thanks in advance.... -
The option to create an instance of the source document from a publication
Hi,
I have a question about the attitude of Business Objects Enterprise 3.1 with creating instances with scheduled publications.
We have different publications scheduled with a deski report as source document. After running a publication always an instance is created behind the publication as a log file. If I look at the source document that was published I donu2019t see an instance. I would like to automatically create an instance of the source document when the publication ran.
In a few of my publications an instance is created on the(deski) source document when the publication ran successfully. How can I set the option to create an instance of the source document of the publication?
Thanks,
Regards,
PieterCreate an interface. say
package MyPackage;
public Interface APlugin {
void runPlugin();
}Then your plugin implements this interface. Then, to load and execute the interface:
try {
Class pClass = class.forName(className);
APlugin plugin = (APlugin) pClass.newInstance();
plugin.runPlugin();
catch(ClassNotFoundException e) {
.... plugin not found
} catch(ClassCastException e) {
.... plugin class found but doesn't implement APlugin
} catch(InstantiationException e) {
... plugin badly defined e.g. doesn't have no-arg constructor
} catch(IllegalAccessException e) {
... plugin or it's constructor not public
} -
Unable o create an instance of the java virtual machine Located at path
I am installing oracle sql developer on Windows XP SP2
I have downloaded sqldeveloper-3.1.07.42 and extracted it.
when i double click sqldeveloper it shows dialog box
Unable o create an instance of the java virtual machine Located at path
..\..\jdk\jre\bin\client\jvm.dll
and OK button
i have tried a solution posted on a site
1- Open the ide.conf file located under <Oracle SQL Developer>jdev\bin\
2- Edit :
AddVMOption -Xmx1024M
AddVMOption -Xmx256M or 512 MB change into 512 instead of 1024
it does not work for me
What is the cause & how to resolve it please help
I would be thankful to you guysHi,
I've got the exact same problem when launching to JDeveloper.
And I've searched on internet for days.
I did try to modify the number of
MaxPermSize in jdev.conf
and
Xmx and Xms in ide.conf
I've tried several combinations, and sometimes it works.
The disappoint fact is that even with the same combination of the settings, sometimes it works and sometimes it doesn't.
Sometimes it just work. Sometimes it doesn't...and after rebooting it works again......Sometimes even rebooting doesn't help.......Sometimes when change MaxPermSize to a smaller number it works...and next time it may not work again....Sometimes you change the MaxPermSize to some other number, save, and then change it back,,,,and it works again...but next time you try to use it, it may not work..........
I don't know what leads to these problems.....anyone could help? Thanks in advance.... -
JDeveloper: Unable to create an instance of the Java Virtual Machine
Hi,
I've got this
Unable to create an instance of the Java Virtual Machine Located in path: C:\u01\app\Oracle\Middleware\JDev11g\jdk160_21\jre\bin\client\jvm.dll
problem like many people else who use JDeveloper.
The OS is Windows XP, I've got 4G memory but maybe just 3G of it works.
But this is not the problem, because I've searched this problem on internet for days.
I did try to modify the number of
MaxPermSize in jdev.conf
and
Xmx and Xms in ide.conf
I've tried several combinations, and sometimes it works.
The disappoint fact is that even with the same combination of the settings, sometimes it works and sometimes it doesn't.
Sometimes it just work....
Sometimes it just doesn't work....
Sometimes it doesn't...and after rebooting it works again......
Sometimes even rebooting doesn't help.......
Sometimes when change MaxPermSize to a smaller number it works...and next time it may not work again....
Sometimes you change the MaxPermSize to some other number, save, and then change it back,,,,and it works again.....
but next time you try to use it, it may not work..........again....
I don't know what leads to these problems.....anyone could help, please?
Thanks in advance....having mentioned that you have tried all possible options. can u try to change the jdk??
-
Why arent my photos loading to my mac via the cloud
why arent my photos loading to my mac via the cloud
The only possible answer anyone can give is... becuase something is wrong. You're not giving us any information to work with.
If you want help you’ll need to give us more information. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
- What version of iPhoto.
- What version of the Operating System.
- Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
- History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
- What steps have you tried already to solve the issue.
- Anything unusual about your set up? Or how you use iPhoto?
Anything else you can think of that might help someone understand the problem you have.
Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. More information means you get better assistance. -
Why portal server can't create an instance of axis.Service class?
Hi,gurus,
We developed a uwl custom connector,The time out occured in that custom connector.After adding the time out value from 30s to 300s,the problem still existed.
The code is like below:
String endpoint = "http://172.16.127.4:8080/appframe-web/services/WorkItemService";
Service service = new Service(); // time out code
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("wisForPortal");
call.addParameter("userCode", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);/
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
String temp = "36";
Object result = call.invoke(new Object[]{temp});
The time out occured when the portal server create an instance of Service class.Does that mean the server can't find the jars?
But the object declaration like "Service service=null;" is all right.
Any ideas?Thanks in advance.I have a project called 'Default EAR' in my workspace.
But I can't add the JAR to the that project. These instructions are for WSAD 4, but I assume WSAD 5 is similar:
Go to menu File and select Import. Choose "File System" to import from. Specify "Default EAR" as your folder and select the jar file from the directory/browse prompt.
This is assuming your web app is connected to Default EAR and not some other EAR file. Also once you've done this, you will find that the jar file automatically becomes part of your build path. You didn't have to do anything extra to make that happen. -
I open Address Book, go into Preferences, select Template and under the Names field (friend, assistant, father, etc) I add a custom field called "Principal".
I also add two more custom fields in the Email area.
Quit Address Book then relaunch. Add a new contact and the new custom fields, Principal, etc. are there. All good so far.
I have a Now Contact file with about 200 contacts in it. I export all fields as a Text file, Tab delimited. No problems there. With Address Book launched, select Import, pick the text file, leave Text Encoding on Automatic and click Open.
The window that shows the fields for Address Book and fields for the text file side by side opens. This is where you match up the correct fields for importing. If I go to one of the fields from the text file that I created a custom field for, click under the Address Book heading on the Do not import, scroll thru the Apple choices of fields, none of the custom fields show up. Only the original Apple ones are there. Why does Apple let you create them in the Template area but not have them available for importing? Does anyone have suggestions on getting around this?While most likely not of interest to you, Spotlight can also tell you where the files it finds are located
Hover the mouse pointer over the name, and press Command-Option and the path to the file will be displayed.
As for opening a terminal session in the directory where a file is located, there is Applescripts that do just that as well as specific features in Lion/Mountain Lion terminal:
<http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder>
<http://hints.macworld.com/article.php?story=20110729034827358>
<http://www.macworld.com/article/1047793/folderinterm.html>
<http://www.macworld.com/article/1161876/open_finder_folder_in_terminal.html>
<http://www.macobserver.com/tmo/article/os_x_lion_open_a_folders_location_in_term inal> -
Only one CPU core high sys usage when create database instance via dbca
when using dbca to create database instance
JUST ONLY ONE CPU core high sys usage
how to troubleshoot it
see this:
top - 09:28:19 up 55 days, 20:38, 10 users, load average: 1.00, 1.08, 1.31
Tasks: 1231 total, 2 running, 1228 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.0%us, 1.3%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 57588328k total, 55028620k used, 2559708k free, 196852k buffers
Swap: 16386292k total, 23156k used, 16363136k free, 23011232k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11343 oracle 25 0 1771m 30m 23m R 99.7 0.1 5:36.39 oracle
3692 oracle 16 0 13948 2348 816 S 1.6 0.0 17:00.94 top
11432 root 15 0 13540 2024 820 R 1.3 0.0 0:00.21 top
11034 oracle 16 0 737m 171m 33m S 0.3 0.3 0:52.39 java
11435 oracle 15 0 66056 1596 1180 S 0.3 0.0 0:00.01 bash
1 root 15 0 784 172 160 S 0.0 0.0 38:56.76 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.58 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.75 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.81 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root RT -5 0 0 0 S 0.0 0.0 0:02.53 migration/2 mpstat info
[root@localhost ~]# mpstat -P ALL 2
Linux 2.6.18-164.el5 (localhost.localdomain) 09/12/12
09:29:09 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:29:11 all 0.01 0.00 1.27 0.01 0.00 0.01 0.00 98.69 1658.29
09:29:11 0 0.50 0.00 0.00 0.00 0.00 0.50 0.00 98.99 1657.29
09:29:11 73 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 74 0.00 0.00 100.00 0.00 0.00 0.00 0.00 0.00 0.00
09:29:11 75 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 76 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 77 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 78 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 79 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:29:13 all 0.01 0.00 1.26 0.01 0.00 0.02 0.00 98.70 1761.19
09:29:13 0 0.50 0.00 0.50 1.00 0.00 1.99 0.00 96.02 1761.19
09:29:13 71 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 72 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 73 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 74 0.00 0.00 100.00 0.00 0.00 0.00 0.00 0.00 0.00
09:29:13 75 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 76 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 77 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 78 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:13 79 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00 you can see there is only one CPU CORE (core 74 but is random , other core have same status but just one CPU core)
[root@localhost ~]# vmstat -S m 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
3 0 23 1861 203 24267 0 0 8 12 0 0 0 0 99 0 0
4 0 23 1845 203 24262 0 0 602 16460 3682 8121 2 2 96 1 0
3 0 23 1842 203 24276 0 0 692 7520 3297 6610 2 2 97 0 0
3 0 23 1830 203 24277 0 0 786 3040 3302 7118 2 2 97 0 0
4 0 23 1829 203 24277 0 0 126 3144 3247 7343 2 1 97 0 0
3 0 23 1827 203 24279 0 0 76 2944 3292 7502 2 2 96 0 0
3 0 23 1823 203 24281 0 0 0 3248 3164 7656 2 1 97 0 0
2 0 23 1827 203 24279 0 0 0 3646 3080 7480 2 1 97 0 0
2 0 23 1828 203 24279 0 0 0 476 2942 5648 1 1 98 0 0
3 0 23 1824 203 24281 0 0 2 7476 3377 8111 2 2 97 0 0iostat infor
avg-cpu: %user %nice %system %iowait %steal %idle
1.28 0.00 1.29 0.00 0.00 97.43
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
hda 0.00 0.00 0.00 0 0
sda 5.47 0.00 83.58 0 168
sda1 0.00 0.00 0.00 0 0
sda2 5.47 0.00 83.58 0 168
sda3 0.00 0.00 0.00 0 0
sda4 0.00 0.00 0.00 0 0
sda5 0.00 0.00 0.00 0 0
sdb 8.96 0.00 123.38 0 248
sdb1 8.96 0.00 123.38 0 248
avg-cpu: %user %nice %system %iowait %steal %idle
1.27 0.00 1.27 0.00 0.00 97.46
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
hda 0.00 0.00 0.00 0 0
sda 0.00 0.00 0.00 0 0
sda1 0.00 0.00 0.00 0 0
sda2 0.00 0.00 0.00 0 0
sda3 0.00 0.00 0.00 0 0
sda4 0.00 0.00 0.00 0 0
sda5 0.00 0.00 0.00 0 0
sdb 17.50 0.00 236.00 0 472
sdb1 17.50 0.00 236.00 0 472
avg-cpu: %user %nice %system %iowait %steal %idle
1.29 0.00 1.30 0.01 0.00 97.41
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
hda 0.00 0.00 0.00 0 0
sda 0.50 0.00 16.00 0 32
sda1 0.00 0.00 0.00 0 0
sda2 0.50 0.00 16.00 0 32
sda3 0.00 0.00 0.00 0 0
sda4 0.00 0.00 0.00 0 0
sda5 0.00 0.00 0.00 0 0
sdb 7.50 0.00 144.00 0 288
sdb1 7.50 0.00 144.00 0 288more detail:
database version 11.2.0.2.0
system version
[root@localhost ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Kernel \r on an \m
[root@localhost ~]# lsb_release
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linuxhardware info
vendor_id : GenuineIntel
cpu family : 6
model : 47
model name : Intel(R) Xeon(R) CPU E7- 4860 @ 2.27GHz
stepping : 2
cpu MHz : 2261.057
cache size : 24576 KB
physical id : 3
siblings : 20
core id : 18
cpu cores : 10
apicid : 229
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4522.11
clflush size : 64
cache_alignment : 64
address sizes : 44 bits physical, 48 bits virtual
[root@localhost ~]# free -m
total used free shared buffers cached
Mem: 56238 55892 346 0 196 23645
-/+ buffers/cache: 32050 24188
Swap: 16002 22 15979
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 19G 4.9G 14G 27% /
/dev/sda5 230G 27G 192G 12% /home
/dev/sda1 99M 12M 83M 13% /boot
/dev/sdb1 2.9T 2.3T 464G 84% /arrayEdited by: JOhnLiu on Sep 11, 2012 7:31 PMJOhnLiu wrote:
thanks for reply sb92075
[root@localhost ~]# mpstat -P ALL 2
Linux 2.6.18-164.el5 (localhost.localdomain) 09/12/12
09:29:09 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:29:11 all 0.01 0.00 1.27 0.01 0.00 0.01 0.00 98.69 1658.29
09:29:11 0 0.50 0.00 0.00 0.00 0.00 0.50 0.00 98.99 1657.29
09:29:11 73 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 74 0.00 0.00 100.00 0.00 0.00 0.00 0.00 0.00 0.00
09:29:11 75 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:29:11 76 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00I think you don't understand what i mean .
there just have ONLY ONE CORE %sys 100
the top command show average of all cpu core sys% usage
when the one core sys% is 100%
the system are very slow .
e.g: when I create a database instance used for a long time . over 2 hours
but generally it will be done at most 1 hours or shorteris any type of OS virtualization involved in this environment? -
Why does pan and zoom create a gap in the video?
I am using pan and zoom to move around still pictures with Premiere Elements 10.0.
When I create the frames and pans in the picture and return to the timeline, PE has inserted a blank gap after the next cut in the video. The pictures are on a separate video track. The gap is just gray and I can't delete and close the gap. When I right-click the gap the Delete and Close Gap popup button is grayed out and cannot be clicked. I'm being very careful to make all of the hold durations plus the pan durations for all frames add up to be the exact length of the original still picture I'm using. Nothing I try seems to get around this problem.
Any suggestions will be greatly apprecieated.
Thanks.I do not recall reading of a Bug in the program, that would create a gap. It would be more likely, that something is being done in the editing, that is creating the gap.
Having a Title on a Video Track "above" the Clips (Video, or Still), is the normal method of doing an overlay Title, that will appear above the Clips, and display as a superimposition of the Title over the Clip.
Now, when editing, one can control how the editing operation affects existing Clips on the Timeline. For instance, if one wishes to edit, or add material, and have that "ripple" all the existing material, then that is the default editing function. If they, instead, wish to have the edit, or the additional material "replace" Frames in the existing material, then this is done by holding down the Ctrl modifier key. It all depends on what the user requires to happen.
Good luck,
Hunt -
ERROR CREATING DATABASE INSTANCE during the installation
I try to install NW04 SP16 in my desktop. During the installation, one error occured that stop the installation process.
I remembered last time I had the similar problem on my laptop. I reinstalled my Windows OS, and tried again, everything goes smooth.
But now, I cannot reinstall the Windows OS in my client company.
What seems to be the problem here?
<i>ERROR 2006-11-03 14:38:49 [iaxxinscbk.cpp:289]
abortInstallation
CJS-00030 Assertion failed: in
function sapdb_db_create(db_nm, db_host, db_ver) {
var dep_root = sapdb_inst_root(db_nm);
var sdb_i = new sdbInstance();
sdb_i.dbName = db_nm;
sdb_i.dbHost = db_host;
sdb_i.dbVer = db_ver[0] + "." + db_ver[1];
sdb_i.ctlUser = sapdb_get_db_user("CONTROL", db_nm, db_host);
sdb_i.ctlUserPasswd = sapdb_get_db_user_passwd("CONTROL", db_nm, db_host);
var actorObj = new SdbExtActor();
actorObj.setSdbInstance(sdb_i);
actorObj.setDbmCmd("DB_CREATE");
actorObj.setExecutable(sapdb_dbmcli_path());
actorObj.setDbRoot(dep_root);
var rv = actorObj.sessionExecute();
ASSERT(arguments.callee, rv == "OK", " SDB: ERROR CREATING DATABASE INSTANCE! Check the XCMDOUT.LOG FILE");
var creation_ok = false;
var i_size = actorObj.outSize();
for (var i = 0; i < i_size; i++) {
var s_line = actorObj.getOutputLine(i);
if (/OK/.test(s_line)) {
creation_ok = true;
ASSERT(arguments.callee, creation_ok, "SDB: ERROR WHILE DB INSTANCE CREATION! CHECK THE XCMDOUT.LOG FILE! ");
SDB: ERROR CREATING DATABASE INSTANCE! Check the XCMDOUT.LOG FILE</i>
Thanks for advise.
KentHi, I have exactly the same problem. How do you solved this issue?
Maybe you are looking for
-
Why does Back To My Mac work for my Time Capsule, but not my MacBook?
I'm having problems using Back To My Mac from work to my home network. Initially, I thought it was something to do with the way the work network had been set up, but recently I realised that I have no problems connecting to my Time Capsule- It's just
-
How do I initialize an array after getting xml data via httpservice?
I am having a problem trying to initialize an array with data from an external xml file obtained via httpservice. Any help/direction would be much appreciated. I am using Flex 4 (Flash Builder 4). Here is my xml file (partial): <?xml version="1.0"
-
Is the iPod Touch 2nd Gen compatible with current iPhone earbuds with mic?
I have a friend that wants to talk to me on Skype with an iPod touch 2nd gen, but the earbuds don't have a microphone to talk into. Is the iPhone earbuds with mic compatible with the Touch Gen 2? Thanks.
-
I upgraded to i0s5 and some of my photo albums didn't transfer to my iPad. They show up as a folder but there are no contents. Thanks
-
When updating my apps they turn grey and won't work anymore
So when I go to the app store and click 'update all' it will go back to my home screen like normal but then the apps that should update go grey, say 'Waiting' and have the loading bar underneath but the bar won't fill! I also can't delete them to try