Resource Boundle up limit
I have JDeveloper 9.0.5.2 and JHeadstart 9.0.5.1 with Patch 1 (i.e., 9.0.5.1.9), and use JSP with Struts. When resource bundle over 3200 clumn, JAG can't run and JDeveloper will auto close. whether resource bundle has size limit or not.
Edwin,
I have logged a bug for this but I am not sure we will be able to do anything about it. As a workaround, there are two solution directions that I could think of. One would be to divide your application into Struts submodules, each with its own, smaller Application Structure File (and therefore smaller Resource Bundle).
Another possibility is to try and make use of the fact that our JhsMessageResourcesFactory can take a comma-separated list of resource bundles. So, you could split up the bundle in several parts. Now to have this work with the application generator, I would try to turn resource bundle generator off in the 'main' application structure file, and create temporary, small Application Structure Files (by creating copies and then removing all groups you no longer need to generate the resource bundle entries for), and change some properties to have them generate to different locations (or turn off all generation except the resource bundle). All this, of course, to be able to generate a smaller Resource Bundle, that can be included in the parameter of the JhsMessageResourceBundle together with the other bundle(s).
Hope this helps,
Peter Ebell
JHeadstart Team
Similar Messages
-
Resource cost / composite limit -- translation
Hi friends.
I'm running Oracle EE 11.2 on Solaris 10.
I'm digging into the use of composite limit to limit some of the resources that the report users can use on our OLTP database.
Obviously, my intention is to prevent them from bringing down our OLTP database to its knees with some runaway or heavy reports.
We all know how easy it is for report writers using Crystal Reports or some other tool to develop ad-hoc queries, joining views to views, etc.
So, I figured I could create them a profile, (e.g., reports_profile) and limit their composite_limit.
I checked out a couple of web pages and then it just got more confusing.
Wondering if anyone has done this and figured it out and able to explain it easily.
References:
ALTER RESOURCE COST
and
CREATE PROFILE
Any help would be appreciated. I read the docs, but it is still confusing.Hi Justin. Sorry if I was unable to make my question clear.
The bottom line is that I would like to know specifically what value I should put for the composite limit to use for my new profile for the folks running reports so as not to bring our OLTP database to its knees during peak times.
The problem is that the composite limit is not something simple like a percentage of total resources. If it were, I could simply set composite limit to 30% of total resources and that would guarantee I would always have at least 70% of the available resources for the OLTP users.
So, researching documents such as:
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_6010.htm
It says: COMPOSITE_LIMIT Specify the total resource cost for a session, expressed in service units. Oracle Database calculates the total service units as a weighted sum of CPU_PER_SESSION, CONNECT_TIME, LOGICAL_READS_PER_SESSION, and PRIVATE_SGA.
Then, a link to Resource Cost:
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_2008.htm#i2227717
It says: (The alter resource cost) statement lets you apply weights to the four resources. Oracle Database then applies the weights to the value of these resources that were specified for a profile to establish a formula for calculating total resource cost. You can limit this cost for a session with the COMPOSITE_LIMIT parameter of the CREATE PROFILE statement.
Oracle Database calculates the total resource cost by first multiplying the amount of each resource used in the session by the weight of the resource, and then summing the products for all four resources. For any session, this cost is limited by the value of the COMPOSITE_LIMIT parameter in the user's profile. Both the products and the total cost are expressed in units called service units.
Then, Specify the weight of each resource. The weight that you assign to each resource determines how much the use of that resource contributes to the total resource cost. If you do not assign a weight to a resource, then the weight defaults to 0, and use of the resource subsequently does not contribute to the cost. The weights you assign apply to all subsequent sessions in the database.
So, it all gets confusing determining the service units value to assign to composite limit. (Oracle did not make this easy which I assume is why they came out with resource manager.)
On another site, which I can not find now, it says that in order to come up with the right values for each resource of the composite limit formula, you have to monitor sessions over long periods of time, but it does not give details for what to monitor, or how to apply the values you capture.
Any help would be appreciated, or perhaps suggest how to use resource management instead. My concern with resource management is that if I understand it correctly, it is based on "services", and I don't know how to restrict users to only specific services that I would set up for them. -
Problems with the resources boundles in java studio creator 2
I try to migrate a proyect from sun java studio creator 2 early access to sun java studio creator 2 but I have a problem, the resource bundle work in creator 2 early access but doesn� work in creator 2, somebody have the same problem?
and, the most important somebody could fix the problem?
Note. sorry I�m learning englishIf I choose for SJSC2 to create JSF applications then
one, or better THE, reason is the (drag and drop)
Design editor functionality.
Using resource bundles is a MUST. So if this means I
cannot use the Design Editor in combination with
resource bundles, then I will use something else...
I think there should be a statement issued by the
SJSC2 team about this bug and what the timescale for
a decent solution wll be.
Regards,
Marcel
BTW: overall SJSC2 seems to be a good alternative to
develop an open source JSF application in a competing
timeframe.I agree. This bug is even more exacerbated by the fact that the error message is entered in the design form and generally clutters more room than was originally intented for the text. Not having i18n is a show stopper right now. Creator2 will have to fully support i18n before we can start using it. -
Resource plan to limit execution time
Hi,
I am using 11.1.0.7 database. Can anyone guide me how should i create a resource consumer group/resource plan and assign to my user "dev" so that any query run by this user should not take more than 10 minutes for execution and should abort if execution time exceeds 10 minutes.
Thanks
SalmanBEGIN
dbms_resource_manager.clear_pending_area();
dbms_resource_manager.create_pending_area();
dbms_resource_manager.create_consumer_group(consumer_group => 'mytest_group', comment => '', cpu_mth => 'ROUND-ROBIN');
dbms_resource_manager.submit_pending_area();
END;
BEGIN
dbms_resource_manager.clear_pending_area();
dbms_resource_manager.create_pending_area();
dbms_resource_manager.create_plan( 'MYTEST_PLAN', '');
dbms_resource_manager.create_plan_directive(
plan => 'MYTEST_PLAN',
group_or_subplan => 'MYTEST_GROUP',
comment => '',
cpu_p1 => NULL, cpu_p2 => NULL, cpu_p3 => NULL, cpu_p4 => NULL,
cpu_p5 => NULL, cpu_p6 => NULL, cpu_p7 => NULL, cpu_p8 => NULL,
parallel_degree_limit_p1 => NULL,
active_sess_pool_p1 => NULL,
queueing_p1 => NULL,
switch_group => 'KILL_SESSION',
switch_time => 600,
switch_estimate => false,
max_est_exec_time => NULL,
undo_pool => NULL,
max_idle_time => NULL,
max_idle_blocker_time => NULL,
switch_time_in_call => NULL
dbms_resource_manager.create_plan_directive(
plan => 'MYTEST_PLAN',
group_or_subplan => 'OTHER_GROUPS',
comment => '',
cpu_p1 => NULL, cpu_p2 => NULL, cpu_p3 => NULL, cpu_p4 => NULL,
cpu_p5 => NULL, cpu_p6 => NULL, cpu_p7 => NULL, cpu_p8 => NULL,
parallel_degree_limit_p1 => NULL,
active_sess_pool_p1 => NULL,
queueing_p1 => NULL,
switch_group => NULL,
switch_time => NULL,
switch_estimate => false,
max_est_exec_time => NULL,
undo_pool => NULL,
max_idle_time => NULL,
max_idle_blocker_time => NULL,
switch_time_in_call => NULL
dbms_resource_manager.submit_pending_area();
END;
BEGIN
dbms_resource_manager.clear_pending_area();
dbms_resource_manager.create_pending_area();
dbms_resource_manager.set_consumer_group_mapping(
dbms_resource_manager.oracle_user,
'DEV',
'MYTEST_GROUP'
dbms_resource_manager.submit_pending_area();
END; -
Resource boundles and german umlaute
Hello,
I'm new to 18n, so i have an important question. I'm developing an internationalized web application (currently for German and English Language). How do i write Umlaute like �,�,�... into the the ResourceBundle files, so that they are displayed correctly on the html pages. The Charset of teh webpages is set to: charset=iso-8859-1.
Do i have to write <code>ä</code> for �?
Thanks for your help. Nice place.
Have a nice dayhello,
there is no problem with the ressource files itself, so the application is already internationalized. But i don't think in an elegant way for the German locale. In the Res Files we write thinks like:
SOMEKEYFORIT = Bitte tragen sie eine gueltige Zahl ein.
The word "gueltige" is such a problem. Is it recommended to write the html code ü instead of "ue" at this point. Or is there another convention for German Umlaute.
So all in all it works, expect of Umlaute, that are currently not well localized.
Thank You,
Have a nice Day -
Can ASA (8.03) Single Context Mode support limit-resource?
I have dual ASA with v8.03 and I want to limit resource for SSH, telnet and ASDM sessions.
By checking Cisoco document, I can manage to test to limit resource with below commands. But it can only perform after enabling multiple context mode.
class default
limit-resource All 0
limit-resource SSH 2
limit-resource ASDM 2
limit-resource Telnet 2
Can anyone help to reply whether we can use "limit-resource" in single context (without enabling multi context mode)? Or any other way to limit resource?Hi.
In single mode, the limit is 5 maximum sessions. it's not possible to change it.
Regards,
Fadi.
Does this answer your question? if yes please mark it answered. -
How to Load the Resource Master for Generic Resources by Department?
We are using P6 enterprise version in our company having a central database.
Q1a.) We set the Activities view > Resource Usage Spreadsheet > Select View 1) By Resource OR 2) By Role.
The result is the spreadsheet presents the Remaining Early Units by Resource OR by Role. Other spreadsheets behave the same way. Is it possible to view the total Remaining Early Units and not have it separated by Resource OR Role?
Q1b.) We would like to find out the recommended structure to load Generic Resources (ie. professional and trades such as Civil Engineer, Mechanical Engineer, Carpenter, Welder etc.) for each Department (ie. 8221, 9362, 8524 etc.) into the Resource Library. Example: we would like to load Civil Engineer once for departments 8221, 9362, 8524, load Welder once for departments 9362, 8524, etc.
We contacted Primavera Support and they pointed us to use Roles.
Thank-you for any suggestions you may have.i think you could try to model it like this:
- define a single "mech eng" role in the role tree (not too deep or even a flat list). no dept's mentioned here. keep the role tree strictly "speciality" oriented or anyway according to their technical classification.
Role ID Role Name
Engr Engineer
.......Engr.SE Structural Engineer
.......Engr.EE Electrical Engineer
.......Engr.ME Mechanical Engineer
- define any number of resources (either individuals, or teams or even a combination of the two) in the resuorce tree.
1 eng with a capacity of 8h/d, a fixed formation (team) regardless of the number of individuals would still have a capacity of 8h/d if they can only accomplish tasks together. if assigning a team of 5 means means faster for fixed workload or more for fixed duration then define a fixed team (again if this is the case) as a single resource with a capacity of 40h/d or simply define and assign the required number of individual eng's 8h/d max each. use activity duration type to switch between duration driving and non-driving resource usage.
e.g.
Resource ID Resource Name Resource Type Default Units / Time Max Units/Time Primary Role Roles
.......*ElecEng Electrical Engineers* Labor 20.00h/d 20.00h/d Electrical Engineer Electrical Engineer
..............EE1BARBW Barb Wire, Senior Electrical Engineer Labor 10.00h/d 10.00h/d Electrical Engineer Electrical Engineer, Project AQ
..............EE2BILLS Bill Sanders, Junior Electrical Engineer Labor 10.00h/d 10.00h/d Electrical Engineer Electrical Engineer, Consultant
.......*MechEng Mechanical Engineers* Labor 10.00h/d 0.00h/d Mechanical Engineer Mechanical Engineer
..............MechEng T1 mech eng team 1 Labor 8.00h/d 8.00h/d Mechanical Engineer Mechanical Engineer
..............MechEng T2 mech eng team 1 Labor 16.00h/d 16.00h/d Mechanical Engineer Mechanical Engineer
.....................MechEng T2.1 ME 2.1 Labor 8.00h/d 8.00h/d Mechanical Engineer Mechanical Engineer, Consultant
.....................MechEng T2.2 ME 2.2 Labor 8.00h/d 8.00h/d Mechanical Engineer Mechanical Engineer
- create the necessary res to role associations. one employee or team (i.e. res) can be linked to one primary qualification and several other proffesions or specialities (i.e. roles)
- when assigning to activities, if a particular individual/ team is required assign directly the res. select several activities requiring mech eng, select 1 or several mech eng's and assign them (use resource security to limit user's access to certain res nodes).
- if any res with a particular role can perform the task, assign the role. later on if you decide for a res, you can assign a particular resource through the previously assigned role. decide applicable rates and h/d between role and res.
- you can track allocation in spreadsheets and histograms by resource or role (or by activity for both). if individual res have clear capacities, for roles you can chose between custon role limits (manual) and system calculated for each role based on res having that as primary qualification (user pref)
- you can report by activity / WBS / project / portfolio (tracking)
- solve over-allocation by levelling, by switching between res for the same role, etc
- optimise duration vs. load and/or # of res/roles (and viceversa)
Edited by: Tibi on Oct 9, 2009 9:40 PM
Edited by: Tibi on Oct 9, 2009 9:59 PM -
Oracle Profile Vs Oracle Resource Manager in Oracle 11g
Hi Friends,
Whats is the Avantages / Dis advantages of using Oracle Profile and Oracle Resource Manager to limit the oracle resources to oracle users in Oracle 11.2.0.1
Regards,
DBIf you have a single database servicing multiple Services / Applications / Schemas (e.g. a typical database consolidation), you could use Profiles and Resource Manager to place limits on resource usage by Service / Application / Schema. That way, for example, a 32 CPU database server running a single database can still limit the number of cores for each Service / Application / Schema using the Resource Manager.
Hemant K Chitale -
Sticky resource not available ?
I get the following error message then i try to configure sticky on an ACE:
Error: sticky resource not available
What is the problem ?
I have release "c6ace-t1k9-mz.A2_1_2.bin" and sticky should be supported.
ace-10/RGW_Front_servers(config)# sticky ip-netmask 255.255.255.255 address source RGW-FRONT
Error: sticky resource not available
Regards,
Ola HaglundHi Ola,
By default sticky resources are not available. You need to go to the Admin context and define a new resource class with some stickiness. See Server LoadBalancing Guide Chapter 5 p8. For example:
resource-class RC1
limit-resource all minimum 0.00 maximum unlimited
limit-resource sticky minimum 10.00 maximum equal-to-min
Obviously the amount of sticky resource to allocate will depend on your application.
And then you need to make the context that needs stickiness a member of that resource class.
For example:
context Test
allocate-interface vlan 292-293
member RC1
HTH
Cathy -
Hi,
I am using ACE4710 with all the servers in default admin context. Now i need to enable sticky persistence and for this it asks me for resource allocation. I've couple of questions regarding this:
1- can i allocat sticky resources to default resource class?
2- If i've to create a new resource class, then how can i associate this class to default Admin context? and will Admin context be member of both default resource calss and the new resource class the same time?
3-Does it really require a restart of ACE once we change default resource class?
besides this i'd really appreciate any other recommendations/suggestions from you guys.
Regards,You need something like the following
resource-class mycompany
limit-resource all minimum 0.00 maximum unlimited
limit-resource sticky minimum 2.00 maximum equal-to-min
context Admin
allocate-interface vlan x
allocate-interface vlan x
member mycompany
1. No ,you cannot edit default class. You will have to create a seperate resource class
2.Define it under "context Admin". No Admin context will just be member of the defined resource class
3.No
HTH
Syed Iftekhar Ahmed -
Database Resource Manager CPU levels
Hi,
I'd like to employ the Database Resource Manager to limit some user's sessions to a certain amount of CPU. After reading the documentation and an Oracle white paper, I'm still not clear on the difference between splitting the CPU allocation at level 1 to 70% and 30% or splitting the CPU allocation 70% at level 1 and 100% at level 2.
Any clarification would be greatly appreciated.
Regards,
Jurewhat white paper did you read ??
did you had a chance to look at oracle docs ??
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dbrm.htm#i1010776
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/ch23_os.htm#BABCAGGJ -
ACE Context - Error: Resources in use
Hi All,
I am trying to associate a resource to a newly created context to enable configuration of sticky sessions within the context. When I assigne the context to the Resource Member it comes back as errored Resources in Use. Any idea's how I can get this configured as my deadlines are tight (thanks to our web developers bringing forward a go-live date to Monday).
The Key configurations are here:
resource-class BRONZE
limit-resource all minimum 0.01 maximum unlimited
limit-resource sticky minimum 0.01 maximum unlimited
resource-class GOLD
limit-resource all minimum 5.00 maximum unlimited
limit-resource sticky minimum 5.00 maximum unlimited
resource-class RESERVE
limit-resource all minimum 18.10 maximum equal-to-min
limit-resource sticky minimum 18.11 maximum equal-to-min
context ACCTX_SPT_FRN
description SPT Context
allocate-interface vlan 1204
allocate-interface vlan 1310
allocate-interface vlan 1410
context ACCTX_SSM_FRN
description SSM Context
allocate-interface vlan 1213
allocate-interface vlan 1313
allocate-interface vlan 1413
member GOLD
context reserve
member RESERVE
Obviously not all contexts shown - there are 14 in Total - 1 reserve, 2 Bronze, 9 Gold and 2 unassigned (of which 1 needs to be Gold).
I saw in previous posts the resource usage was key to identifying where issue could be. As I am learning this beast, I couldn't fully make sense of the previous posts so apologies for this:
Allocation
Resource Current Peak Min Max Denied
Context: Summary
conc-connections 115391 217571 3601600 65976000 0
mgmt-connections 69 326 2250 41250 0
proxy-connections 27736 49687 472060 8647590 0
xlates 0 0 472060 8647590 0
bandwidth 15037110 1503203965 450200000 3952032704 3915
connection rate 76 11281 450200 8247000 0
ssl-connections rate 10 1495 6754 123720 0
mgmt-traffic rate 618 277886 56275000 1030875000 0
mac-miss rate 0 868 900 16500 100033
inspect-conn rate 0 0 2700 49470 0
acl-memory 102912 109392 3930522 43220012 0
regexp 104 104 52429 576507 0
syslog buffer 4194304 4196352 209715 2306028 0
syslog rate 4 923 150 1649 0
Help is very much appreciated. There are no reported issues with current loads so the Denieds I take as a misnomer.
Regards
AdrianFrom my first idea I would think you use more then 100% of your sticky resource. maybe you should provide the whole context config.
-
Application Resources into Model Project
Hi everyone!
I'm writing to yours, because I'm working in a project witch ADF Faces/JSF/EJB 3.0./TopLink/BPEL technology.
I have Session Beans which implement business rules and business logic. I want to centralize the messages that the user will view due to execution of logic methods. I was thinking to implement an Application Resources Boundle in Model project like a ViewController project. I think that is a good idea to centralize the messages and I will get better maintein of this into the application.
What do you think about this?.
I'll be waiting your responses.
Greetings.Hi,
sure. Using message bundles alway makes good sense, especially for applications that should be localized.
Frank -
Is there any way I may set low resources priority for a specific job or even all SQL jobs?
Is there any way I may set low resources priority for a specific job or even all SQL jobs?
Our database is quite big and everything works OK and very fast, except SQL jobs which are used mainly for maintenance purposes.
I have one specific job which runs for 2 minutes and takes a lot of resources which may affect execution of other stored procedure which should be executed fast.The worst part is that this job has to be executed during the most active working hours. It does
not matter for me how long will it take to execute this job. I just do not want it to use so much resources.
Also I noticed when SQL backup job (takes about 4 minute) is scheduled it also takes a lot of resources and sometimes because of that I am receiving "login timeout" error on my web site.depending on you sql server version and edition, you can use resource governor and limit the cpu and memory.
in most typical cases , you can use the session user name and times and classify the how much cpu and memory they can use. refer : https://msdn.microsoft.com/en-us/library/cc645892.aspx
but in your case, the problem seems to be with the maintenance jobs which could run as sql server service account.
also, if the backup are third party tool backup, you can specify the priority level and other options etc to make it less priority.
it is possible to do that even with native backups such as specifying the limiting buffercount, max transfer size, if the server is memory pressured. sometimes, stripping the backups to multiple sets across different devices, could help as well. even though
stripping the backups can introduce another complexity.
may be you need to rethink you back up\recovery strategy.
Hope it Helps!! -
Question on "show resource usage"
Hi,
Hope you are doing great!
the "show resource usage" indicate the resource usage of the security appliance or for each context.
I am wondering the below output:
FWSM# show resource usage
Resource Current Peak Limit Denied Context
SSH 1 2 5 0 System
Syslogs [rate] 1573 65155 unlimited 0 System
Conns 29937 192916 unlimited 0 System
Xlates 6751 180865 unlimited 0 System
Hosts 6218 65515 unlimited 0 System
Conns [rate] 665 32500 unlimited 0 System
Fixups [rate] 467 4617 unlimited 0 System
FWSM#
does it mean the FWSM is generating 1573 syslogs/second currently? and it used to generate 65155 syslog/second?
I don't believe the FWSM can generate 65155 syslogs per second....
does it mean anything else?
Thanks!Hello,
The command can be use on single and multiple mode:
Example:
show resource usage context admin
Check this links for more information about this command:
http://www.cisco.com/en/US/docs/security/asa/asa84/command/reference/s4.html#wp1527546
Not sure if the syslogs are per second or what is interval, but yes, those are the amount of logs being generated.
Regards,
Felipe.
Maybe you are looking for
-
Creation of new IS and DS for single IO?
Hi guys, I got a requirement wherein I should create a new IS and DS for a single IO, and the source for this is a flat file. And I should create this for an already existing Info cube which has got some IO's and the source for that is from some othe
-
"Set date and time automatically" not working on my new unibody macbook
my digital time display shows wrong time, 6 hours +, but my analog clock shows the right time on my System Preference window. My system recognizes the digital time. I tried manually setting but if I get the digital time right my analog is wrong. Is a
-
XIAdapter/HTTP/ADAPTER.HTTP_EXCEPT
Hi, we are getting the following exception when calling a soap webservice via XI. SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 302 Found we have already searched existing threads but didn't find any useful hin
-
hello guys.. i am facing prob with my 5800 music player... while listening to songs some of my songs get corrupted and when i swich off my cell they work again but after 2-3 songs of playing it again gets corrupted... i tried to format the card i got
-
Howto quote percent (%) in formsweb.cfg/HTMLbeforeForm
Hello, I would like to embed an iframe in basejini.htm/basejpi.htm. Doing this by setting HTMLbeforeForm=<iframe src="frame.html" name="frame" width="100%"></iframe> works almost perfectly, but "width=100%" doesn't work, since any occurrences of "%"